Remove lambda to be compatible with Qt 5.2

This commit is contained in:
Janek Bevendorff 2017-02-14 20:02:01 +01:00
parent 9b211928a9
commit 012d0ee885

View File

@ -736,11 +736,9 @@ void MainWindow::toggleWindow()
} else { } else {
ensurePolished(); ensurePolished();
setWindowState(windowState() & ~Qt::WindowMinimized); setWindowState(windowState() & ~Qt::WindowMinimized);
QTimer::singleShot(0, this, [this]() { show();
show(); raise();
raise(); activateWindow();
activateWindow();
});
#if defined(Q_OS_LINUX) && ! defined(QT_NO_DBUS) #if defined(Q_OS_LINUX) && ! defined(QT_NO_DBUS)
// re-register global D-Bus menu (needed on Ubuntu with Unity) // re-register global D-Bus menu (needed on Ubuntu with Unity)