D21876: When loading a session always load the "open recent" list
Christoph Cullmann
noreply at phabricator.kde.org
Sat Jul 13 16:44:18 BST 2019
cullmann added a comment.
Hi,
looks nearly ok, but in this loop:
for (int i = 0; i < windowsCount ; ++i) {
// if there are no main windows, create one to call loadOpenRecent()
if(i == windowsCount) {
KateMainWindow *w = KateApp::self()->newMainWindow();
if (w !=nullptr) {
w->loadOpenRecent(cfg);
}
} else {
KateApp::self()->mainWindow(i)->loadOpenRecent(cfg);
}
}
How shall there the if(i == windowsCount) {
part be ever feasible?
REPOSITORY
R40 Kate
REVISION DETAIL
https://phabricator.kde.org/D21876
To: ahmadsamir, #kate, cullmann, dhaumann
Cc: cfeck, kwrite-devel, domson, michaelh, ngraham, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190713/4e0c3315/attachment.html>
More information about the KWrite-Devel
mailing list