D20467: Allow to close a document whose file was deleted on disk

Méven Car noreply at phabricator.kde.org
Fri Apr 12 08:49:37 BST 2019


meven added a comment.


  In D20467#448495 <https://phabricator.kde.org/D20467#448495>, @cullmann wrote:
  
  > If you really want to close the document aka removing it from the application's document list, you need the interface.
  
  
  That's what we want for kate.
  
  > If you just want to set it back to "untitled document" you can use closeUrl
  
  That would be the path to use for kwrite.
  
  Is there a proper way to differentiate between the two ?
  
  I would like also to remove the confirmation dialog about loosing data.
  ReadWritePart has a closeUrl(bool prompt) that could be of use.
  I'd rather avoid extending the interface.

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D20467

To: meven, cullmann, #kate, #frameworks, dhaumann
Cc: dhaumann, ngraham, kwrite-devel, kde-frameworks-devel, gennad, domson, michaelh, bruns, demsking, cullmann, sars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190412/1f35a522/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list