[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeaddons/konq-plugins/webarchiver
From: Thomas Zander <zander () kde ! org>
Date: 2003-12-23 9:13:11
[Download RAW message or body]
CVS commit by zander:
Fix filename proposal code; colons and slashes are not allowed in filenames.
This fixed the problem that after pressing OK on the file dialog nothing
happens, not even an error message when a "today: foo" like Url was proposed.
M +7 -2 plugin_webarchiver.cpp 1.31
--- kdeaddons/konq-plugins/webarchiver/plugin_webarchiver.cpp #1.30:1.31
@@ -77,5 +77,10 @@ void PluginWebArchiver::slotSaveToArchiv
// Replace space with underscore, proposed Frank Pieczynski <pieczy@knuut.de>
- archiveName = archiveName.simplifyWhiteSpace().replace( QRegExp("\\s+"), "_");
+
+ archiveName = archiveName.simplifyWhiteSpace();
+ archiveName.replace( "\\s:", " ");
+ archiveName.replace( ":", "");
+ archiveName.replace( "/", "");
+ archiveName = archiveName.replace( QRegExp("\\s+"), "_");
archiveName = QDir::homeDirPath() + "/" + archiveName + ".war"; //Thanks ade
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic