author | zautrix <zautrix> | 2005-06-07 06:37:42 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-07 06:37:42 (UTC) |
commit | ff8af7ccdd6346bba1cb871c33931352bbafe40e (patch) (side-by-side diff) | |
tree | 8a905fe8237cd1be7276b3c5f10479a9efdb6ee5 /kaddressbook | |
parent | 79f58240bc34d20601abe3325e1dc7e76e1ebe39 (diff) | |
download | kdepimpi-ff8af7ccdd6346bba1cb871c33931352bbafe40e.zip kdepimpi-ff8af7ccdd6346bba1cb871c33931352bbafe40e.tar.gz kdepimpi-ff8af7ccdd6346bba1cb871c33931352bbafe40e.tar.bz2 |
fixx
-rw-r--r-- | kaddressbook/mainembedded.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 50db377..93ba53c 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp @@ -80,40 +80,41 @@ int main( int argc, char **argv ) KAddressBookMain m ; //US MainWindow m; #ifndef DESKTOP_VERSION QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); #endif #ifndef DESKTOP_VERSION a.showMainWidget( &m ); #else a.setMainWidget( &m ); m.show(); #endif a.exec(); #ifdef DESKTOP_VERSION KConfig *config = KABPrefs::instance()->getConfig(); config->setGroup("WidgetLayout"); QStringList list ;//= config->readListEntry("MainLayout"); int x,y,w,h; QWidget* wid; wid = &m; x = wid->geometry().x(); y = wid->geometry().y(); w = wid->width(); h = wid->height(); list.clear(); list << QString::number( x ); list << QString::number( y ); list << QString::number( w ); list << QString::number( h ); config->writeEntry("MainLayout",list ); + config->sync(); #endif dumpMissing(); KPimGlobalPrefs::instance()->writeConfig(); } qDebug("KA: Bye! "); } |