diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-02-12 09:15:33 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:12:10 +0300 |
commit | 8cd0f1dac3763776a04e33e8cad5ae897c847272 (patch) | |
tree | ef36c427c0ba80990f7c14bb387e13e7acf628d4 /qt | |
parent | a7b8aaf803167866c20fa2444a37b50b28b2ad38 (diff) |
[QT] Fixed crash on Update button click
Diffstat (limited to 'qt')
-rw-r--r-- | qt/update_dialog.cpp | 6 | ||||
-rw-r--r-- | qt/update_dialog.hpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp index 7a51c6a8b3..c007c66525 100644 --- a/qt/update_dialog.cpp +++ b/qt/update_dialog.cpp @@ -53,8 +53,8 @@ namespace qt { //m_label = new QLabel(QObject::tr("Version: ") + VERSION_STRING, this); - QPushButton * m_updateButton = new QPushButton(QObject::tr(CHECK_FOR_UPDATE), this); - connect(m_updateButton, SIGNAL(clicked(bool)), this, SLOT(OnButtonClick(bool))); + m_updateButton = new QPushButton(QObject::tr(CHECK_FOR_UPDATE), this); + connect(m_updateButton, SIGNAL(clicked()), this, SLOT(OnUpdateClick())); m_tree = new QTreeWidget(this); m_tree->setColumnCount(KNumberOfColumns); @@ -159,7 +159,7 @@ namespace qt return item; } - void UpdateDialog::OnButtonClick(bool) + void UpdateDialog::OnUpdateClick() { m_updateButton->setText(QObject::tr("Checking for update...")); m_updateButton->setDisabled(true); diff --git a/qt/update_dialog.hpp b/qt/update_dialog.hpp index 14d584eb49..d71f3048d8 100644 --- a/qt/update_dialog.hpp +++ b/qt/update_dialog.hpp @@ -32,7 +32,7 @@ namespace qt private slots: void OnItemClick(QTreeWidgetItem * item, int column); - void OnButtonClick(bool checked = false); + void OnUpdateClick(); private: void FillTree(); |