author | zautrix <zautrix> | 2005-07-28 12:59:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-28 12:59:27 (UTC) |
commit | 8e21306a697d77c80d42f450a721cb3d7c23fd0f (patch) (side-by-side diff) | |
tree | a7eed1d0dafc2725709704a3658f1ff42b7d8b8b /korganizer/komonthview.cpp | |
parent | fee4c893fe8fd01af1b55c1ccd40213fc18a36b4 (diff) | |
download | kdepimpi-8e21306a697d77c80d42f450a721cb3d7c23fd0f.zip kdepimpi-8e21306a697d77c80d42f450a721cb3d7c23fd0f.tar.gz kdepimpi-8e21306a697d77c80d42f450a721cb3d7c23fd0f.tar.bz2 |
monv fix
-rw-r--r-- | korganizer/komonthview.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 4aeb20c..8d06040 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -84,2 +84,3 @@ KNoScrollListBox::KNoScrollListBox(QWidget *parent,const char *name) #endif + mBlockDeselect = false; mWT = new KNOWhatsThis(this); @@ -137,10 +138,14 @@ void KNoScrollListBox::focusOutEvent ( QFocusEvent * e ) { + if ( ! mBlockDeselect ) { int i = currentItem (); if ( i >= 0 ) { - setSelected ( i, false ); + setSelected ( i, false ); } QListBox::focusOutEvent ( e ); + } setVScrollBarMode(QScrollView::AlwaysOff); setHScrollBarMode(QScrollView::AlwaysOff); - emit highlightIncidence( 0, (MonthViewCell*)this, 0 ); + if ( ! mBlockDeselect ) + emit highlightIncidence( 0, (MonthViewCell*)this, 0 ); + mBlockDeselect = false; } @@ -1112,5 +1117,4 @@ void MonthViewCell::contextMenu( QListBoxItem *item ) if ( incidence ) { + mBlockDeselect = true; mMonthView->showContextMenu( incidence ); - selection( item ); - doHighLight( incidence ); } |