summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp6
-rw-r--r--core/pim/todo/mainwindow.h1
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
@@ -160,2 +160,3 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) :
this, SLOT(slotShowDetails() ) );
+ viewAction = a;
@@ -438,2 +439,3 @@ void TodoWindow::currentEntryChanged( int r, int )
editAction->setEnabled( TRUE );
+ viewAction->setEnabled( TRUE );
deleteAction->setEnabled( TRUE );
@@ -443,2 +445,3 @@ void TodoWindow::currentEntryChanged( int r, int )
editAction->setEnabled( FALSE );
+ viewAction->setEnabled( FALSE );
deleteAction->setEnabled( FALSE );
@@ -609,2 +612,4 @@ void TodoWindow::showDeadline( bool s )
{
+ if ( !table->isUpdatesEnabled() )
+ return;
table->setPaintingEnabled( false );
@@ -612,2 +617,3 @@ void TodoWindow::showDeadline( bool s )
table->setPaintingEnabled( true );
+ mStack->raiseWidget( 1 );
}
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
@@ -81,2 +81,3 @@ private:
QAction *editAction,
+ *viewAction,
*deleteAction,