revert shitty fix (#1335)

This commit is contained in:
Vanellope 2019-03-20 04:15:14 +09:00 committed by Florian Märkl
parent f62076a142
commit 6f1309452a
3 changed files with 1 additions and 3 deletions

View File

@ -346,7 +346,7 @@ void MainWindow::setOverviewData()
bool MainWindow::isOverviewActive()
{
if (!overviewDock || overviewDock->userClosed || !overviewDock->isVisible) {
if (!overviewDock || overviewDock->userClosed) {
return false;
}
if (core->isGraphEmpty()) {

View File

@ -15,7 +15,6 @@ OverviewWidget::OverviewWidget(MainWindow *main, QAction *action) :
});
connect(this, &QDockWidget::visibilityChanged, this, [ = ](bool visibility) {
isVisible = visibility;
if (visibility) {
updateContents();
}

View File

@ -19,7 +19,6 @@ public:
* @brief if user closed this widget explicitly
*/
bool userClosed = false;
bool isVisible = false;
private:
RefreshDeferrer *refreshDeferrer;
/**