diff options
author | Mavridis Philippe <[email protected]> | 2024-05-26 13:13:07 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2024-06-02 15:35:42 +0300 |
commit | 3b75bf0aeb7d69defedb0c20f46091b586d98056 (patch) | |
tree | a7bebc61abe9ce581b5dc3808af5dacf1a2c7864 /kate/app/katemwmodonhddialog.cpp | |
parent | 9fe2bb32a3325880c54bfdf35ed7699c2cc32173 (diff) | |
download | tdebase-3b75bf0aeb7d69defedb0c20f46091b586d98056.tar.gz tdebase-3b75bf0aeb7d69defedb0c20f46091b586d98056.zip |
Kate: use paths for local files instead of file:/// URLs.
Signed-off-by: Mavridis Philippe <[email protected]>
(cherry picked from commit 0ce7b62e9e7a28ed4da7e6fb829bd5ded214bda9)
Diffstat (limited to 'kate/app/katemwmodonhddialog.cpp')
-rw-r--r-- | kate/app/katemwmodonhddialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kate/app/katemwmodonhddialog.cpp b/kate/app/katemwmodonhddialog.cpp index 3babd75e8..ffdd92fa7 100644 --- a/kate/app/katemwmodonhddialog.cpp +++ b/kate/app/katemwmodonhddialog.cpp @@ -44,7 +44,7 @@ class KateDocItem : public TQCheckListItem { public: KateDocItem( Kate::Document *doc, const TQString &status, TDEListView *lv ) - : TQCheckListItem( lv, doc->url().prettyURL(), CheckBox ), + : TQCheckListItem( lv, doc->url().pathOrURL(), CheckBox ), document( doc ) { setText( 1, status ); @@ -143,12 +143,12 @@ void KateMwModOnHdDialog::handleSelected( int action ) for ( TQListViewItemIterator it ( lvDocuments ); it.current(); ++it ) { KateDocItem *item = static_cast<KateDocItem *>(it.current()); - + if ( item->isOn() ) { int reason = (int)KateDocManager::self()->documentInfo( item->document )->modifiedOnDiscReason; bool succes = true; - + Kate::DocumentExt *dext = documentExt( item->document ); if ( ! dext ) continue; @@ -161,7 +161,7 @@ void KateMwModOnHdDialog::handleSelected( int action ) { KMessageBox::sorry( this, i18n("Could not save the document \n'%1'"). - arg( item->document->url().prettyURL() ) ); + arg( item->document->url().pathOrURL() ) ); } break; |