summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-03-15 10:59:28 (UTC)
committer zautrix <zautrix>2005-03-15 10:59:28 (UTC)
commitf695ed8bf462bab5df0f6b41d3d3e6ed5b803484 (patch) (unidiff)
tree993f48f8048eb37354c3326ee8fc998afc598f81
parentefa425789895481dd918a55af27895a7917d2a20 (diff)
downloadkdepimpi-f695ed8bf462bab5df0f6b41d3d3e6ed5b803484.zip
kdepimpi-f695ed8bf462bab5df0f6b41d3d3e6ed5b803484.tar.gz
kdepimpi-f695ed8bf462bab5df0f6b41d3d3e6ed5b803484.tar.bz2
sync conflict dialog fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventviewerdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp
index f606124..f734696 100644
--- a/korganizer/koeventviewerdialog.cpp
+++ b/korganizer/koeventviewerdialog.cpp
@@ -82,16 +82,17 @@ void KOEventViewerDialog::showMe()
82 show(); 82 show();
83 setGeometry(x,y,w,h); 83 setGeometry(x,y,w,h);
84#else 84#else
85 showMaximized(); 85 showMaximized();
86#endif 86#endif
87 raise(); 87 raise();
88 setActiveWindow(); 88 setActiveWindow();
89 mEventViewer->setFocus(); 89 mEventViewer->setFocus();
90 //raise();
90 91
91} 92}
92void KOEventViewerDialog::setSyncMode( bool b ) 93void KOEventViewerDialog::setSyncMode( bool b )
93{ 94{
94 mSyncMode = b; 95 mSyncMode = b;
95 //qDebug("KOEventViewerDialog::setSyncMode %d ",mSyncMode ); 96 //qDebug("KOEventViewerDialog::setSyncMode %d ",mSyncMode );
96 if ( mSyncMode ) { 97 if ( mSyncMode ) {
97 findButton( Close )->setText( i18n("Cancel Sync")); 98 findButton( Close )->setText( i18n("Cancel Sync"));
@@ -284,15 +285,18 @@ void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e )
284void KOEventViewerDialog::hideEvent ( QHideEvent * e ) 285void KOEventViewerDialog::hideEvent ( QHideEvent * e )
285{ 286{
286 KDialogBase::hideEvent ( e ); 287 KDialogBase::hideEvent ( e );
287 QTimer::singleShot( 1, this, SLOT (slotViewerClosed() ) ); 288 QTimer::singleShot( 1, this, SLOT (slotViewerClosed() ) );
288} 289}
289 290
290void KOEventViewerDialog::slotViewerClosed() 291void KOEventViewerDialog::slotViewerClosed()
291{ 292{
293 if ( mSyncMode )
294 return;
295
292 if ( sendSignalViewerClosed ) { 296 if ( sendSignalViewerClosed ) {
293 //qDebug("KOEventViewerDialog::hideEvent "); 297 //qDebug("KOEventViewerDialog::hideEvent ");
294 emit signalViewerClosed(); 298 emit signalViewerClosed();
295 } 299 }
296 sendSignalViewerClosed = true; 300 sendSignalViewerClosed = true;
297} 301}
298 302