Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d0a5f415 authored by Anthony Fieroni's avatar Anthony Fieroni

[akregator] Make sure part is created before main windows is restored

DIfferential Revision: https://phabricator.kde.org/D6739

BUG: 381822
BUG: 378513
BUG: 381825
BUG: 377129
Signed-off-by: Anthony Fieroni's avatarAnthony Fieroni <bvbfan@abv.bg>
parent 7428948e
......@@ -113,14 +113,11 @@ int main(int argc, char **argv)
// see if we are starting with session management
if (app.isSessionRestored()) {
#undef RESTORE
#define RESTORE(type) { int n = 1; \
while (KMainWindow::canBeRestored(n)) { \
(new type)->restore(n, false); \
n++;} \
}
RESTORE(Akregator::MainWindow);
auto mainWindow = new Akregator::MainWindow();
mainWindow->loadPart();
if (KMainWindow::canBeRestored(1)) {
mainWindow->restore(1, false);
}
}
return app.exec();
......
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