Changeset 14395
- Timestamp:
- Dec 22, 2014, 12:02:27 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/session.cc
r14394 r14395 17 17 #include <QDesktopServices> 18 18 #include <QFile> 19 #include <QFileInfo> 19 20 #include <QMessageBox> 20 21 #include <QNetworkProxy> … … 92 93 FileAdded::executed (int64_t tag, const QString& result, tr_variant * arguments) 93 94 { 94 Q_UNUSED (arguments);95 96 95 if (tag != myTag) 97 96 return; … … 99 98 if (result == "success") 100 99 { 100 tr_variant * dup; 101 const char * str; 102 if (tr_variantDictFindDict (arguments, TR_KEY_torrent_duplicate, &dup) && 103 tr_variantDictFindStr (dup, TR_KEY_name, &str, NULL)) 104 { 105 const QString myFilename = QFileInfo (myName).fileName (); 106 const QString name = QString::fromUtf8 (str); 107 QMessageBox::warning (QApplication::activeWindow (), 108 tr ("Add Torrent"), 109 tr ("<p><b>Unable to add \"%1\".</b></p><p>It is a duplicate of \"%2\" which is already added.</p>").arg (myFilename).arg (name)); 110 } 111 101 112 if (!myDelFile.isEmpty ()) 102 113 {
Note: See TracChangeset
for help on using the changeset viewer.