commit 385a13c02dd597b62a1f66ca484552173524bb25
parent 90f91c3d058610a9532acb4d858f3e810b4c7c39
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 6 Dec 2015 01:35:42 -0500
show a message box when the synchronization is completed
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/reapack.cpp b/src/reapack.cpp
@@ -134,6 +134,11 @@ Transaction *ReaPack::createTransaction()
});
m_transaction->onFinish([=] {
+ if(m_transaction->packages().empty())
+ ShowMessageBox("Nothing to do!", "ReaPack", 0);
+ else
+ ShowMessageBox("Synchronization complete!", "ReaPack", 0);
+
m_progress->setTransaction(0);
m_progress->hide();
diff --git a/src/transaction.cpp b/src/transaction.cpp
@@ -81,7 +81,6 @@ void Transaction::prepare()
}
if(m_packages.empty()) {
- ShowMessageBox("Nothing to do!", "ReaPack", 0);
finish();
return;
}