mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Try to return active window in MainApplication::getWindow
This commit is contained in:
parent
60ae2c1705
commit
983df81ee0
@ -410,12 +410,19 @@ void MainApplication::setupJumpList()
|
||||
|
||||
QupZilla* MainApplication::getWindow()
|
||||
{
|
||||
QupZilla* activeW = qobject_cast<QupZilla*>(activeWindow());
|
||||
if (activeW) {
|
||||
return activeW;
|
||||
}
|
||||
|
||||
for (int i = 0; i < m_mainWindows.count(); i++) {
|
||||
if (!m_mainWindows.at(i)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return m_mainWindows.at(i).data();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user