diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-08-22 21:32:37 +0300 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-08-23 10:28:06 +0200 |
commit | fc52103524bdeb8d73cd774e8d765f98229bfdd8 (patch) | |
tree | 14c7d1066c501adb112d39e4e091fc9efd43919d /src/plugins/locator/locatorwidget.cpp | |
parent | 672fc59fd6f20549aaa4ff7a4af8ccb710111a52 (diff) |
Locator: Simplify condition
a || (!a && b) === a || b
Change-Id: I3d3b602fa496a7d5a1f57a95ebedf30748429850
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/locator/locatorwidget.cpp')
-rw-r--r-- | src/plugins/locator/locatorwidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/locator/locatorwidget.cpp b/src/plugins/locator/locatorwidget.cpp index 0093cbf733..139b42b71c 100644 --- a/src/plugins/locator/locatorwidget.cpp +++ b/src/plugins/locator/locatorwidget.cpp @@ -398,8 +398,7 @@ bool LocatorWidget::eventFilter(QObject *obj, QEvent *event) } } else if (obj == m_fileLineEdit && event->type() == QEvent::FocusOut) { QFocusEvent *fev = static_cast<QFocusEvent *>(event); - if (fev->reason() != Qt::ActiveWindowFocusReason - || (fev->reason() == Qt::ActiveWindowFocusReason && !m_completionList->isActiveWindow())) { + if (fev->reason() != Qt::ActiveWindowFocusReason || !m_completionList->isActiveWindow()) { m_completionList->hide(); m_fileLineEdit->clearFocus(); } |