Commit 77ffa31e authored by Alexander A. Maly's avatar Alexander A. Maly

Do not print garbage on exit.

It dumped some geometry binary settings to the screen and
printed CLOSE TASK WINDOW when there was no any task.
parent c4edb77d
...@@ -900,8 +900,6 @@ void MainWindowTask::closeEvent(QCloseEvent *event) ...@@ -900,8 +900,6 @@ void MainWindowTask::closeEvent(QCloseEvent *event)
settings->flush(); settings->flush();
} }
qDebug() << ui->splitter->saveGeometry();
qDebug() << "CLOSE TASK WINDOW";
if (!course) { if (!course) {
return; return;
} }
...@@ -911,8 +909,8 @@ void MainWindowTask::closeEvent(QCloseEvent *event) ...@@ -911,8 +909,8 @@ void MainWindowTask::closeEvent(QCloseEvent *event)
qDebug() << "CLOSE TASK WINDOW"; qDebug() << "CLOSE TASK WINDOW";
event->accept(); event->accept();
close(); close();
}; };
bool MainWindowTask::safeToQuit() bool MainWindowTask::safeToQuit()
{ {
if (!course) { if (!course) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment