projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
123fc36
)
dcc: Only show file receive dialog for new transfers
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 28 Sep 2016 21:03:27 +0000
(23:03 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 28 Sep 2016 21:06:07 +0000
(23:06 +0200)
... and not for ones that have been around on the core already
prior to syncing.
src/qtui/mainwin.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/mainwin.cpp
b/src/qtui/mainwin.cpp
index
7688512
..
3fc4cb9
100644
(file)
--- a/
src/qtui/mainwin.cpp
+++ b/
src/qtui/mainwin.cpp
@@
-1485,8
+1485,10
@@
void MainWin::showNewTransferDlg(const QUuid &transferId)
{
auto transfer = Client::transferManager()->transfer(transferId);
if (transfer) {
- ReceiveFileDlg *dlg = new ReceiveFileDlg(transfer, this);
- dlg->show();
+ if (transfer->status() == Transfer::Status::New) {
+ ReceiveFileDlg *dlg = new ReceiveFileDlg(transfer, this);
+ dlg->show();
+ }
}
else {
qWarning() << "Unknown transfer ID" << transferId;