summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncmanager.cpp
Side-by-side diff
Diffstat (limited to 'libkdepim/ksyncmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index 1f5f4c7..9177f63 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -369,12 +369,17 @@ void KSyncManager::enableQuick( bool ask )
#endif
syncdesktop.setChecked( mPrefs->mPassiveSyncWithDesktop );
- dia.setFixedSize( 230,120 );
- dia.setCaption( i18n("Enter port for Pi-Sync") );
QPushButton pb ( "OK", &dia);
lay.addWidget( &pb );
connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) );
+ dia.resize( 230,120 );
+ dia.setCaption( i18n("Enter port for Pi-Sync") );
dia.show();
+#ifndef DESKTOP_VERSION
+ int dw = QApplication::desktop()->width();
+ int dh = QApplication::desktop()->height();
+ dia.move( (dw-dia.width())/2, (dh - dia.height() )/2 );
+#endif
if ( ! dia.exec() )
return;
dia.hide();