summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-05-25 08:21:59 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-05-25 08:21:59 (GMT)
commit4f387ef2ff44266fbeab9b5bae7e7c704e926d01 (patch)
treef71c165538d6cb0229c9fbbfbaa8231bb0795fb1 /Swift
parent253bcd613e1935c5f93df581e3499e7d3f787208 (diff)
downloadswift-contrib-4f387ef2ff44266fbeab9b5bae7e7c704e926d01.zip
swift-contrib-4f387ef2ff44266fbeab9b5bae7e7c704e926d01.tar.bz2
More careful use of focus change signal to avoid status setting failing on Windows
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtStatusWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtStatusWidget.cpp b/Swift/QtUI/QtStatusWidget.cpp
index ab2e854..da5d0e0 100644
--- a/Swift/QtUI/QtStatusWidget.cpp
+++ b/Swift/QtUI/QtStatusWidget.cpp
@@ -80,8 +80,6 @@ QtStatusWidget::QtStatusWidget(QWidget *parent) : QWidget(parent), editCursor_(Q
connect(menu_, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(handleItemClicked(QListWidgetItem*)));
- connect(qApp, SIGNAL(focusChanged(QWidget*, QWidget*)), this, SLOT(handleApplicationFocusChanged(QWidget*, QWidget*)));
-
viewMode();
}
@@ -145,9 +143,11 @@ void QtStatusWidget::handleClicked() {
statusEdit_->selectAll();
stack_->setCurrentIndex(1);
statusEdit_->setFocus();
+ connect(qApp, SIGNAL(focusChanged(QWidget*, QWidget*)), this, SLOT(handleApplicationFocusChanged(QWidget*, QWidget*)), Qt/*::ConnectionType*/::QueuedConnection);
}
void QtStatusWidget::viewMode() {
+ disconnect(qApp, SIGNAL(focusChanged(QWidget*, QWidget*)), this, SLOT(handleApplicationFocusChanged(QWidget*, QWidget*)));
editing_ = false;
menu_->hide();
stack_->setCurrentIndex(0);