summaryrefslogtreecommitdiffabout
path: root/libkdepim
Side-by-side diff
Diffstat (limited to 'libkdepim') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp11
-rw-r--r--libkdepim/ksyncmanager.h2
2 files changed, 8 insertions, 5 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index 9177f63..c8d0e0d 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -72,8 +72,6 @@ KSyncManager::KSyncManager(QWidget* parent, KSyncInterface* implementation, Targ
int dw = QApplication::desktop()->width();
int dh = QApplication::desktop()->height();
bar->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h );
- if ( mPrefs->mPassiveSyncAutoStart )
- enableQuick( false );
}
@@ -82,6 +80,12 @@ KSyncManager::~KSyncManager()
delete bar;
}
+void KSyncManager::setDefaultFileName( QString s)
+{
+ mDefFileName = s ;
+ if ( mPrefs->mPassiveSyncAutoStart )
+ enableQuick( false );
+}
void KSyncManager::fillSyncMenu()
{
@@ -412,7 +416,6 @@ void KSyncManager::enableQuick( bool ask )
//qDebug("port %d ", port);
mServerSocket = new KServerSocket ( mPrefs->mPassiveSyncPw, port ,1 );
mServerSocket->setFileName( defaultFileName() );//bbb
- //qDebug("connected ");
if ( !mServerSocket->ok() ) {
KMessageBox::information( 0, i18n("Failed to bind or\nlisten to the port!"));
delete mServerSocket;
@@ -1117,7 +1120,7 @@ KServerSocket:: KServerSocket ( QString pw, Q_UINT16 port, int backlog, QObject
mSocket = 0;
mSyncActionDialog = 0;
blockRC = false;
-};
+}
void KServerSocket::newConnection ( int socket )
{
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h
index 9a3066e..09bd1c1 100644
--- a/libkdepim/ksyncmanager.h
+++ b/libkdepim/ksyncmanager.h
@@ -121,7 +121,7 @@ class KSyncManager : public QObject
void multiSync( bool askforPrefs );
bool blockSave() { return mBlockSaveFlag; }
void setBlockSave(bool sa) { mBlockSaveFlag = sa; }
- void setDefaultFileName( QString s) { mDefFileName = s ;}
+ void setDefaultFileName( QString s) ;
QString defaultFileName() { return mDefFileName ;}
QString syncFileName();
void enableQuick( bool ask = true);