]> granicus.if.org Git - nethack/commitdiff
Qt4: Fix wrong condition in search blocking
authorPasi Kallinen <paxed@alt.org>
Tue, 10 Oct 2017 18:13:37 +0000 (21:13 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 10 Oct 2017 18:13:37 +0000 (21:13 +0300)
win/Qt4/qt4menu.cpp

index 5bfefd3b5a7d85dc3a3f8a575478b08dba2fcba4..5ab05389186656475e758c6c57116987399d8c57 100644 (file)
@@ -541,7 +541,7 @@ void NetHackQtMenuWindow::Invert()
 }
 void NetHackQtMenuWindow::Search()
 {
-    if (how != PICK_NONE)
+    if (how == PICK_NONE)
         return;
 
     NetHackQtStringRequestor requestor(this, "Search for:");