diff --git a/src/plugins/find/findtoolwindow.cpp b/src/plugins/find/findtoolwindow.cpp
index 7cab358b90f96412c7e716a0102359166316cda9..c3a89c22426559cc26616f17aeb479e1b7068aca 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();