Skip to content

Commit

Permalink
Use splitter's section size to determine whether scanner pane is visi…
Browse files Browse the repository at this point in the history
…ble.

This was a regression in e8ea2b3, where the visibility predicate
was changed to something more readable. As it turned out, the visibility
of the widget does not indicate whether it is visible: the splitter may
be collapsed.

The predicate has now been reverted to what it was previously.
  • Loading branch information
cristian64 committed May 16, 2024
1 parent 8e5fd21 commit ad9ae96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GUI/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void MainWindow::makeMenus()
m_actScanner->setCheckable(true);
QTimer::singleShot(0, [this]() {
QSignalBlocker signalBlocker(m_actScanner);
m_actScanner->setChecked(m_scanner->isVisible());
m_actScanner->setChecked(m_splitter->sizes()[0] > 0);
});

m_actQuit = new QAction(tr("&Quit"), this);
Expand Down

0 comments on commit ad9ae96

Please sign in to comment.