Commit e8f42b62 authored by Robert Knight's avatar Robert Knight

Prompt before over-writing existing files in Scrollback -> Save Output dialog.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=902755
parent f05ddc2e
......@@ -1042,9 +1042,6 @@ void SaveHistoryTask::execute()
{
QListIterator<SessionPtr> iter(sessions());
// TODO - prompt the user if the file already exists, currently existing files
// are always overwritten
// TODO - think about the UI when saving multiple history sessions, if there are more than two or
// three then providing a URL for each one will be tedious
......@@ -1053,6 +1050,9 @@ void SaveHistoryTask::execute()
KFileDialog* dialog = new KFileDialog( QString(":konsole") /* check this */,
QString(), QApplication::activeWindow() );
dialog->setOperationMode(KFileDialog::Saving);
dialog->setConfirmOverwrite(true);
QStringList mimeTypes;
mimeTypes << "text/plain";
mimeTypes << "text/html";
......
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