Summary: | Konqueror tortures X11 on Out Of Disk space | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Charles Samuels <charles> |
Component: | bookmarks | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Charles Samuels
2003-04-04 18:28:15 UTC
Subject: kdelibs/kio/bookmarks CVS commit by lypanov: Only show "can't write bookmarks.xml - out of disk space" once to prevent DoS'ing of the users screen. Also improve the error message slightly, though i guess it could be possible duplication of data: "out of disk space" CCMAIL: 56840-done@bugs.kde.org M +11 -1 kbookmarkmanager.cc 1.65 --- kdelibs/kio/bookmarks/kbookmarkmanager.cc #1.64:1.65 @@ -265,5 +265,15 @@ bool KBookmarkManager::saveAs( const QSt failure: - KMessageBox::error( 0L, i18n("Couldn't save bookmarks in %1. %2").arg(filename).arg(strerror(file.status())) ); + static int hadSaveError = false; + if ( !hadSaveError ) + KMessageBox::error( + 0L, i18n("Couldn't save bookmarks in %1. Reported error was: %2." + "This error message will only be shown once, please fix the " + "possible cause of the error as quickly as possible, " + "the most likely cause is that of a full harddrive") + .arg(filename) + .arg(strerror(file.status())) + ); + hadSaveError = true; return false; } |