summaryrefslogtreecommitdiff
path: root/src/plugins/find/findtoolwindow.cpp
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2009-05-06 16:43:49 +0200
committercon <qtc-committer@nokia.com>2009-05-06 17:42:13 +0200
commit286d8091948148567c8ae7c5ddb1e0d09864249f (patch)
treef5f057ca4d9fd45ad1a43dad6db6de0c6306dc1a /src/plugins/find/findtoolwindow.cpp
parent62e370ae4c0c46f08309853a478c252ffd3ec8af (diff)
downloadqt-creator-286d8091948148567c8ae7c5ddb1e0d09864249f.tar.gz
Fix the crash fix d03b5714c7e3e2fe56c7008418d2aa68c197e7c2.
Diffstat (limited to 'src/plugins/find/findtoolwindow.cpp')
-rw-r--r--src/plugins/find/findtoolwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/find/findtoolwindow.cpp b/src/plugins/find/findtoolwindow.cpp
index 7cab358b90..c3a89c2242 100644
--- a/src/plugins/find/findtoolwindow.cpp
+++ b/src/plugins/find/findtoolwindow.cpp
@@ -136,7 +136,7 @@ void FindToolWindow::writeSettings()
{
QSettings *settings = Core::ICore::instance()->settings();
settings->beginGroup("Find");
- settings->setValue("CurrentFilter", m_currentFilter ? 0 : m_currentFilter->id());
+ settings->setValue("CurrentFilter", m_currentFilter ? m_currentFilter->id() : 0);
foreach (IFindFilter *filter, m_filters)
filter->writeSettings(settings);
settings->endGroup();