Commit 2a4b66e3 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix showing of dialog the user can't interact with when saving

The issue is using KIO::move + exec() can show a dialog but exec says
to QEventLoop::ExcludeUserInputEvents so the user is stuck there

Move to KIO::file_move since we're moving files anyway and set overwrite
since we're already asking if the file exists anyway (twice in fact, fix
coming in the next commit)

BUGS: 437574
parent 9941aa93
......@@ -40,7 +40,7 @@
#include <KSharedConfig>
#include <KLocalizedString>
#include <KIO/StoredTransferJob>
#include <KIO/CopyJob>
#include <KIO/FileCopyJob>
#include <KMessageBox>
#include <QDebug>
......@@ -622,7 +622,7 @@ bool K3b::ProjectManager::saveProject( K3b::Doc* doc, const QUrl& url )
KIO::CopyJob *copyJob = KIO::move(QUrl::fromLocalFile(tmpfile.fileName()), url);
KIO::FileCopyJob *copyJob = KIO::file_move(QUrl::fromLocalFile(tmpfile.fileName()), url, -1, KIO::Overwrite);
return success;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment