D17599: Confirm closing if multiple tabs are open.
Shubham
noreply at phabricator.kde.org
Sat Dec 22 18:18:30 GMT 2018
shubham added inline comments.
INLINE COMMENTS
> katemainwindow.cpp:1220
> + case KMessageBox::No:
> + KateApp::self()->documentManager()->closeDocument(KateApp::self()->documentManager()->documentList().last());
> + Q_FALLTHROUGH();
how do I get the currently active KTextEditor::Document to pass to the closeDocument().
Currently it closes last tab, just need to get the tab number of active tab, but how?
REPOSITORY
R40 Kate
REVISION DETAIL
https://phabricator.kde.org/D17599
To: shubham, dhaumann, #kate, cullmann, sars
Cc: pino, kwrite-devel, hase, michaelh, ngraham, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20181222/793d6b8e/attachment-0001.html>
More information about the KWrite-Devel
mailing list