Skip to content

Commit

Permalink
src/mainwindow.cpp: don't keep delayedResize timer
Browse files Browse the repository at this point in the history
We don't need to keep the delayedResize timer around for later. We will
potentially use the delayedLoad timer again, but not the delayedResize
timer after it has been used the first time.
  • Loading branch information
HED-jzignego committed Mar 2, 2022
1 parent bdf6813 commit 6204194
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ MainWindow::MainWindow() : QMainWindow()

network_interface = new QNetworkInterface();

delayedResize = new QTimer();
delayedLoad = new QTimer();

#ifdef USE_TESTLIB
Expand Down Expand Up @@ -346,7 +345,7 @@ void MainWindow::setupWindow()
if (qwkSettings->getBool("view/startup_resize_delayed")) {
delay_resize = qwkSettings->getUInt("view/startup_resize_delay");
}
delayedResize->singleShot(delay_resize, this, SLOT(delayedWindowResize()));
QTimer::singleShot(delay_resize, this, SLOT(delayedWindowResize()));

int delay_load = 0;
if (qwkSettings->getBool("browser/startup_load_delayed")) {
Expand Down
1 change: 0 additions & 1 deletion src/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ protected slots:
QNetworkSession *n_session;
QNetworkInterface *network_interface;

QTimer *delayedResize;
QTimer *delayedLoad;
};

Expand Down

0 comments on commit 6204194

Please sign in to comment.