summaryrefslogtreecommitdiff
authorleseb <leseb>2002-07-10 17:49:35 (UTC)
committer leseb <leseb>2002-07-10 17:49:35 (UTC)
commit729309f7875915b2617f99228b0a71464ecfe699 (patch) (unidiff)
tree2d2f6e62674bac1807488a3a1684712bc848a101
parent6456ddb2be2a874e858ee25d8463e446b7af58d5 (diff)
downloadopie-729309f7875915b2617f99228b0a71464ecfe699.zip
opie-729309f7875915b2617f99228b0a71464ecfe699.tar.gz
opie-729309f7875915b2617f99228b0a71464ecfe699.tar.bz2
Fix "delete all" message box
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 27e76d9..974951e 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -331,49 +331,49 @@ void TodoWindow::slotDelete()
331 return; 331 return;
332 332
333 333
334 334
335 table->setPaintingEnabled( false ); 335 table->setPaintingEnabled( false );
336 table->removeCurrentEntry(); 336 table->removeCurrentEntry();
337 table->setPaintingEnabled( true ); 337 table->setPaintingEnabled( true );
338 338
339 if ( table->numRows() == 0 ) { 339 if ( table->numRows() == 0 ) {
340 currentEntryChanged( -1, 0 ); 340 currentEntryChanged( -1, 0 );
341 findAction->setEnabled( FALSE ); 341 findAction->setEnabled( FALSE );
342 } 342 }
343 mStack->raiseWidget(1); 343 mStack->raiseWidget(1);
344} 344}
345void TodoWindow::slotDeleteAll() 345void TodoWindow::slotDeleteAll()
346{ 346{
347 if(syncing) { 347 if(syncing) {
348 QMessageBox::warning(this, tr("Todo"), 348 QMessageBox::warning(this, tr("Todo"),
349 tr("Can not edit data, currently syncing")); 349 tr("Can not edit data, currently syncing"));
350 return; 350 return;
351 } 351 }
352 352
353 //QString strName = table->text( table->currentRow(), 2 ).left( 30 ); 353 //QString strName = table->text( table->currentRow(), 2 ).left( 30 );
354 354
355 if ( !QPEMessageBox::confirmDelete( this, tr( "Todo" ), tr("Delete all tasks?") ) ) 355 if ( !QPEMessageBox::confirmDelete( this, tr( "Todo" ), tr("all tasks") ) )
356 return; 356 return;
357 357
358 358
359 359
360 table->setPaintingEnabled( false ); 360 table->setPaintingEnabled( false );
361 table->removeAllEntries(); 361 table->removeAllEntries();
362 table->setPaintingEnabled( true ); 362 table->setPaintingEnabled( true );
363 363
364 if ( table->numRows() == 0 ) { 364 if ( table->numRows() == 0 ) {
365 currentEntryChanged( -1, 0 ); 365 currentEntryChanged( -1, 0 );
366 findAction->setEnabled( FALSE ); 366 findAction->setEnabled( FALSE );
367 } 367 }
368 mStack->raiseWidget(1 ); 368 mStack->raiseWidget(1 );
369} 369}
370 370
371void TodoWindow::slotEdit() 371void TodoWindow::slotEdit()
372{ 372{
373 if(syncing) { 373 if(syncing) {
374 QMessageBox::warning(this, tr("Todo"), 374 QMessageBox::warning(this, tr("Todo"),
375 tr("Can not edit data, currently syncing")); 375 tr("Can not edit data, currently syncing"));
376 return; 376 return;
377 } 377 }
378 378
379 ToDoEvent todo = table->currentEntry(); 379 ToDoEvent todo = table->currentEntry();