Commit eb76befa authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

gemini: Remove obsolete timers in switchToSketch/Desktop

parent c0afb21e
......@@ -299,9 +299,6 @@ void MainWindow::switchSketchForced()
void MainWindow::switchToSketch()
{
QTime timer;
timer.start();
if (d->toSketch)
{
d->toSketch->setEnabled(false);
......@@ -335,8 +332,6 @@ void MainWindow::switchToSketch()
else
QTimer::singleShot(50, this, SLOT(sketchChange()));
//qDebug() << "milliseconds to switch to sketch:" << timer.elapsed();
if (view && view->document()) {
view->document()->setSaveInBatchMode(true);
}
......@@ -374,9 +369,6 @@ void MainWindow::sketchChange()
void MainWindow::switchToDesktop(bool justLoaded)
{
QTime timer;
timer.start();
if (d->toDesktop)
d->toDesktop->setEnabled(false);
......@@ -422,8 +414,6 @@ void MainWindow::switchToDesktop(bool justLoaded)
if (view && view->document()) {
view->document()->setSaveInBatchMode(false);
}
//qDebug() << "milliseconds to switch to desktop:" << timer.elapsed();
}
void MainWindow::adjustZoomOnDocumentChangedAndStuff()
......
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