Fixed bug with disabling history buttons while searching
[mdictionary] / trunk / src / base / gui / SearchBarWidget.cpp
index 476ec26..03eeda8 100644 (file)
@@ -202,6 +202,11 @@ void SearchBarWidget::setEnabled(bool enabled) {
         historyPrevToolButton->setEnabled(history->prevAvailable());
         historyShowToolButton->setEnabled(history->listAvailable());
     }
+    else {
+        historyNextToolButton->setEnabled(false);
+        historyPrevToolButton->setEnabled(false);
+        historyShowToolButton->setEnabled(false);
+    }
 }
 
 void SearchBarWidget::setBusy() {