-rw-r--r-- | core/pim/todo/mainwindow.cpp | 6 | ||||
-rw-r--r-- | core/pim/todo/mainwindow.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index d419166..27e76d9 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -159,4 +159,5 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) : | |||
159 | connect( a, SIGNAL( activated() ), | 159 | connect( a, SIGNAL( activated() ), |
160 | this, SLOT(slotShowDetails() ) ); | 160 | this, SLOT(slotShowDetails() ) ); |
161 | viewAction = a; | ||
161 | 162 | ||
162 | edit->insertSeparator(); | 163 | edit->insertSeparator(); |
@@ -437,4 +438,5 @@ void TodoWindow::currentEntryChanged( int r, int ) | |||
437 | if ( r != -1 && table->rowHeight( r ) > 0 ) { | 438 | if ( r != -1 && table->rowHeight( r ) > 0 ) { |
438 | editAction->setEnabled( TRUE ); | 439 | editAction->setEnabled( TRUE ); |
440 | viewAction->setEnabled( TRUE ); | ||
439 | deleteAction->setEnabled( TRUE ); | 441 | deleteAction->setEnabled( TRUE ); |
440 | duplicateAction->setEnabled( TRUE ); | 442 | duplicateAction->setEnabled( TRUE ); |
@@ -442,4 +444,5 @@ void TodoWindow::currentEntryChanged( int r, int ) | |||
442 | } else { | 444 | } else { |
443 | editAction->setEnabled( FALSE ); | 445 | editAction->setEnabled( FALSE ); |
446 | viewAction->setEnabled( FALSE ); | ||
444 | deleteAction->setEnabled( FALSE ); | 447 | deleteAction->setEnabled( FALSE ); |
445 | duplicateAction->setEnabled( FALSE ); | 448 | duplicateAction->setEnabled( FALSE ); |
@@ -608,7 +611,10 @@ void TodoWindow::beamDone( Ir *ir ) | |||
608 | void TodoWindow::showDeadline( bool s ) | 611 | void TodoWindow::showDeadline( bool s ) |
609 | { | 612 | { |
613 | if ( !table->isUpdatesEnabled() ) | ||
614 | return; | ||
610 | table->setPaintingEnabled( false ); | 615 | table->setPaintingEnabled( false ); |
611 | table->setShowDeadline( s ); | 616 | table->setShowDeadline( s ); |
612 | table->setPaintingEnabled( true ); | 617 | table->setPaintingEnabled( true ); |
618 | mStack->raiseWidget( 1 ); | ||
613 | } | 619 | } |
614 | void TodoWindow::slotShowDetails() | 620 | void TodoWindow::slotShowDetails() |
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h index f62ec6e..7e8445c 100644 --- a/core/pim/todo/mainwindow.h +++ b/core/pim/todo/mainwindow.h | |||
@@ -80,4 +80,5 @@ private: | |||
80 | TodoLabel *mView; | 80 | TodoLabel *mView; |
81 | QAction *editAction, | 81 | QAction *editAction, |
82 | *viewAction, | ||
82 | *deleteAction, | 83 | *deleteAction, |
83 | *findAction, | 84 | *findAction, |