From f844c88e79a89044362c180b174668a05dea0bbc Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 21 Dec 2010 22:14:22 +0000 Subject: [PATCH] added missing notification git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3927 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessagesDialog.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/MessagesDialog.cpp b/retroshare-gui/src/gui/MessagesDialog.cpp index 7e617aa19..3a914ce5b 100644 --- a/retroshare-gui/src/gui/MessagesDialog.cpp +++ b/retroshare-gui/src/gui/MessagesDialog.cpp @@ -20,6 +20,7 @@ ****************************************************************/ #include +#include #include #include #include @@ -877,7 +878,13 @@ void MessagesDialog::getcurrentrecommended() { const FileInfo& f(it->second) ; std::cout << "Requesting file " << f.fname << ", size=" << f.size << ", hash=" << f.hash << std::endl ; - rsFiles -> FileRequest(it->second.fname,it->second.hash,it->second.size, "", RS_FILE_HINTS_NETWORK_WIDE, srcIds); + + if(! rsFiles->FileRequest(it->second.fname,it->second.hash,it->second.size, "", RS_FILE_HINTS_NETWORK_WIDE, srcIds)) + { + QMessageBox mb(QObject::tr("File Request canceled"), QObject::tr("The following has not been added to your download list, because you already have it:\n ")+QString::fromStdString(it->second.fname),QMessageBox::Critical,QMessageBox::Ok,0,0); + mb.setWindowIcon(QIcon(QString::fromUtf8(":/images/rstray3.png"))); + mb.exec(); + } } }