From e8dac946bcd8c080b9abb74b45221ca0c5f268c7 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 17 Sep 2004 10:24:36 +0000 Subject: Bugfix in password asking in kopi syncing --- (limited to 'korganizer') diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index b1c7709..b597a6a 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -1979,7 +1979,13 @@ void MainWindow::syncRemote( KSyncProfile* prof, bool ask) // e->setLocation( KOPrefs::instance()->mSyncProfileNames[mCurrentSyncProfile]); // e->setReadOnly( true ); if ( KOPrefs::instance()->mWriteBackFile ) { - command = prof->getPostSyncCommand(); + command = prof->getPostSyncCommand(); + int fi; + if ( (fi = command.find("$PWD$")) > 0 ) { + QString pwd = getPassword(); + command = command.left( fi )+ pwd + command.mid( fi+5 ); + + } setCaption ( i18n( "Writing back file ..." ) ); result = system ( command ); qDebug("KO: Writing back file result: %d ", result); -- cgit v0.9.0.2