summaryrefslogtreecommitdiff
authorleseb <leseb>2002-07-10 17:45:15 (UTC)
committer leseb <leseb>2002-07-10 17:45:15 (UTC)
commit6456ddb2be2a874e858ee25d8463e446b7af58d5 (patch) (side-by-side diff)
treec2354188cea6176ed1959dfd304f701428da1ce7
parent46110a78dd0646d972f238e295ee016f3e78fb85 (diff)
downloadopie-6456ddb2be2a874e858ee25d8463e446b7af58d5.zip
opie-6456ddb2be2a874e858ee25d8463e446b7af58d5.tar.gz
opie-6456ddb2be2a874e858ee25d8463e446b7af58d5.tar.bz2
Fix "view" menu item
Diffstat (more/less context) (ignore 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
@@ -159,4 +159,5 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) :
connect( a, SIGNAL( activated() ),
this, SLOT(slotShowDetails() ) );
+ viewAction = a;
edit->insertSeparator();
@@ -437,4 +438,5 @@ void TodoWindow::currentEntryChanged( int r, int )
if ( r != -1 && table->rowHeight( r ) > 0 ) {
editAction->setEnabled( TRUE );
+ viewAction->setEnabled( TRUE );
deleteAction->setEnabled( TRUE );
duplicateAction->setEnabled( TRUE );
@@ -442,4 +444,5 @@ void TodoWindow::currentEntryChanged( int r, int )
} else {
editAction->setEnabled( FALSE );
+ viewAction->setEnabled( FALSE );
deleteAction->setEnabled( FALSE );
duplicateAction->setEnabled( FALSE );
@@ -608,7 +611,10 @@ void TodoWindow::beamDone( Ir *ir )
void TodoWindow::showDeadline( bool s )
{
+ if ( !table->isUpdatesEnabled() )
+ return;
table->setPaintingEnabled( false );
table->setShowDeadline( s );
table->setPaintingEnabled( true );
+ mStack->raiseWidget( 1 );
}
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:
TodoLabel *mView;
QAction *editAction,
+ *viewAction,
*deleteAction,
*findAction,