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/kbackgroundsnapshot.cpp =================================================================== --- KDE/kdegraphics/ksnapshot/kbackgroundsnapshot.cpp (revision 719619) +++ KDE/kdegraphics/ksnapshot/kbackgroundsnapshot.cpp (working copy) @@ -90,7 +90,7 @@ void KBackgroundSnapshot::savePictureOnDesktop() { - filename = KUrl( KGlobalSettings::desktopPath()+i18n("snapshot")+"1.png" ); + filename = KUrl( KGlobalSettings::desktopPath()+i18n("snapshot")+"01.png" ); // Make sure the name is not already being used while(KIO::NetAccess::exists( filename, KIO::NetAccess::DestinationSide, 0L )) { autoincFilename(); 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 )) {