Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-05-15 20:01:49 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:38:28 +0300
commit9ba77a08daa4ab7383b28c3ed03fc86a5fae313b (patch)
tree4cc703f3bd2b2d3c9a45e316052c59ab2e527065 /qt/update_dialog.cpp
parent1bd9a4be35c8c953419068912abe7838c4abc5e0 (diff)
fixed compilation for desktop.
Diffstat (limited to 'qt/update_dialog.cpp')
-rw-r--r--qt/update_dialog.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp
index b5057178be..cf9c06ed39 100644
--- a/qt/update_dialog.cpp
+++ b/qt/update_dialog.cpp
@@ -57,7 +57,9 @@ namespace qt
////////////////////////////////////////////////////////////////////////////////
UpdateDialog::UpdateDialog(QWidget * parent, Storage & storage)
- : QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint), m_storage(storage)
+ : QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
+ m_storage(storage),
+ m_observerSlotId(0)
{
setWindowModality(Qt::WindowModal);
@@ -85,14 +87,14 @@ namespace qt
resize(600, 500);
// we want to receive all download progress and result events
- m_storage.Subscribe(bind(&UpdateDialog::OnCountryChanged, this, _1),
- bind(&UpdateDialog::OnCountryDownloadProgress, this, _1, _2));
+ m_observerSlotId = m_storage.Subscribe(bind(&UpdateDialog::OnCountryChanged, this, _1),
+ bind(&UpdateDialog::OnCountryDownloadProgress, this, _1, _2));
}
UpdateDialog::~UpdateDialog()
{
// tell download manager that we're gone...
- m_storage.Unsubscribe();
+ m_storage.Unsubscribe(m_observerSlotId);
}
/// when user clicks on any map row in the table