Ignore:
Timestamp:
12/12/11 23:53:04 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
e21d164
Parents:
167a532
Message:

When the search toolbox button is clicked when the search dialog is already open, it is closed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r167a532 rd12c1e0  
    162162
    163163void MainWindow::on_searchAction_triggered() {
    164     searchTabContainer->showSearchDialog();
    165     tabWidget->setCurrentWidget(searchTab);
     164    if (tabWidget->currentWidget() == searchTab)
     165        searchTabContainer->showSearchDialog(!searchTabContainer->searchDialogIsVisible());
     166    else {
     167        tabWidget->setCurrentWidget(searchTab);
     168        searchTabContainer->showSearchDialog();
     169    }
    166170}
    167171
Note: See TracChangeset for help on using the changeset viewer.