[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 102972] New: Verify if the user user will override a file
From: Sebastien <slaout () linux62 ! org>
Date: 2005-03-31 23:01:10
Message-ID: 20050401010107.102972.slaout () linux62 ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=102972
Summary: Verify if the user user will override a file
Product: kio
Version: unspecified
Platform: unspecified
OS/Version: Linux
Status: NEW
Severity: wishlist
Priority: NOR
Component: kfile
AssignedTo: pfeiffer kde org
ReportedBy: slaout linux62 org
Version: (using KDE KDE 3.4.0)
When using KFileDialog to get a save url or file, if the user select an existing file the save dialog \
don't show a confirmation message to ask me if I want to overwrite the existing file or not.
Perhapse I haven't searched enouth (because it's strange KDE doesn't provide such parameter), but I \
haven't found any parameter to ask confirmation.
So, it's what I do:
KURL url;
bool tryAgain = true;
while (tryAgain)
{
url = KFileDialog::getSaveURL();
if (url.isEmpty())
{
tryAgain = false;
}
if (!KIO::NetAccess::exists(url, true, this) ||
KMessageBox::warningYesNo(this, "<qt>" + i18n("The file <strong>%1</strong> already exists. \
Do you wish to overwrite it?").arg(url.prettyURL()) + "</qt>", i18n("File Exists")) == KMessageBox::Yes) \
{ tryAgain = false;
}
}
Very heavy to do this, and the message can to not be the same as in other applications.
Can this feature be integrated into the dialogs?
At least as an optional parameter.
It will allow to have consistent messages, and it will allow programers to not reinvent the wheel.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic