summaryrefslogtreecommitdiffabout
Unidiff
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
@@ -78,24 +78,25 @@ void KOEventViewerDialog::showMe()
78 x = geometry().x(); 78 x = geometry().x();
79 y = geometry().y(); 79 y = geometry().y();
80 w = width(); 80 w = width();
81 h = height(); 81 h = height();
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"));
98 findButton( Ok )->setText( i18n("Remote")); 99 findButton( Ok )->setText( i18n("Remote"));
99 findButton( User1 )->setText( i18n("Local")); 100 findButton( User1 )->setText( i18n("Local"));
100 } else { 101 } else {
101 findButton( Close )->setText( i18n("Close")); 102 findButton( Close )->setText( i18n("Close"));
@@ -280,19 +281,22 @@ void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e )
280 break; 281 break;
281 } 282 }
282 283
283} 284}
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