diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-05-26 13:13:07 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-06-02 15:35:42 +0300 |
commit | 3b75bf0aeb7d69defedb0c20f46091b586d98056 (patch) | |
tree | a7bebc61abe9ce581b5dc3808af5dacf1a2c7864 /kate/app/kateapp.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 <mavridisf@gmail.com>
(cherry picked from commit 0ce7b62e9e7a28ed4da7e6fb829bd5ded214bda9)
Diffstat (limited to 'kate/app/kateapp.cpp')
-rw-r--r-- | kate/app/kateapp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kate/app/kateapp.cpp b/kate/app/kateapp.cpp index 0e4c18121..479d0c77c 100644 --- a/kate/app/kateapp.cpp +++ b/kate/app/kateapp.cpp @@ -239,7 +239,7 @@ bool KateApp::startupKate() } else KMessageBox::sorry( activeMainWindow(), - i18n("The file '%1' could not be opened: it is not a normal file, it is a folder.").arg(m_args->url(z).url()) ); + i18n("The file '%1' could not be opened: it is not a normal file, it is a folder.").arg(m_args->url(z).pathOrURL()) ); } Kate::Document::setOpenErrorDialogsActivated (true); @@ -350,9 +350,9 @@ bool KateApp::query_session_close() saveSessions = true; } } - + if (saveSessions) - { + { m_sessionManager->saveActiveSession(); } m_sessionManager->saveConfig(saveSessions); @@ -403,7 +403,7 @@ bool KateApp::openURL (const KURL &url, const TQString &encoding, bool isTempFil } else KMessageBox::sorry( mainWindow, - i18n("The file '%1' could not be opened: it is not a normal file, it is a folder.").arg(url.url()) ); + i18n("The file '%1' could not be opened: it is not a normal file, it is a folder.").arg(url.pathOrURL()) ); return true; } |