https://bugs.kde.org/show_bug.cgi?id=461161
Christoph Cullmann <cullm...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cullm...@kde.org --- Comment #1 from Christoph Cullmann <cullm...@kde.org> --- We altered that to avoid confusion, perhaps that was bad idea. QUrl KTextEditor::DocumentPrivate::getSaveFileUrl(const QString &dialogTitle) { // per default we use the url of the current document // if that is empty, we will try to get the url of the last used view, we assume some properly ordered views() list is around QUrl startUrl = url(); if (auto mainWindow = KTextEditor::Editor::instance()->application()->activeMainWindow(); mainWindow && !startUrl.isValid()) { const auto views = mainWindow->views(); for (auto view : views) { if (view->document()->url().isValid()) { startUrl = view->document()->url(); break; } } } // spawn the dialog, dialogParent will take care of proper parent // we remove the filename, otherwise we propose to save as some other already existing file, that is confusing // beside we need to do that to avoid to use the filename as directory name, see bug 454648 return QFileDialog::getSaveFileUrl(dialogParent(), dialogTitle, startUrl.isValid() ? startUrl.adjusted(QUrl::RemoveFilename) : QUrl()); } -- You are receiving this mail because: You are watching all bug changes.