Public feed #722476

hdh

public diff v1 · immutable
Raw Edit
·published 2007-10-02 01:04 UTC
rendered paste body
Index: KDE/kdegraphics/ksnapshot/ksnapshotobject.cpp===================================================================--- KDE/kdegraphics/ksnapshot/ksnapshotobject.cpp       (revision 719619)+++ KDE/kdegraphics/ksnapshot/ksnapshotobject.cpp       (working copy)@@ -56,7 +56,7 @@     QRegExp numSearch("[0-9]+");     // Does it have a number?-    int start = numSearch.indexIn(name);+    int start = numSearch.lastIndexIn(name);     if (start != -1) {         // It has a number, increment it         int len = numSearch.matchedLength();Index: KDE/kdegraphics/ksnapshot/ksnapshot.cpp===================================================================--- KDE/kdegraphics/ksnapshot/ksnapshot.cpp     (revision 719619)+++ KDE/kdegraphics/ksnapshot/ksnapshot.cpp     (working copy)@@ -152,7 +152,7 @@     setDelay( conf.readEntry("delay", 0) );     setMode( conf.readEntry("mode", 0) );     setIncludeDecorations(conf.readEntry("includeDecorations",true));-    filename = KUrl( conf.readPathEntry( "filename", QDir::currentPath()+'/'+i18n("snapshot")+"1.png" ));+    filename = KUrl( conf.readPathEntry( "filename", QDir::currentPath()+'/'+i18n("snapshot")+"01.png" ));     // Make sure the name is not already being used     while(KIO::NetAccess::exists( filename, KIO::NetAccess::DestinationSide, this )) {