Changeset 1085


Ignore:
Timestamp:
May 31, 2011 6:17:45 PM (9 years ago)
Author:
gegorbet
Message:

Further mod so most actions have no extra Success/Cancel? dialog
(2 clicks to an action, instead of 3).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/programs/us_manage_data/us_data_tree.cpp

    r1054 r1085  
    670670void US_DataTree::action_result( int stat, QString item_act )
    671671{
     672   QLabel* lb_status = da_model->statlab();
     673
    672674   if ( stat != 999 )
    673675   {  // proceed was selected:  test status of action
     
    675677      if ( stat == 0 )
    676678      {  // action was successful
    677          QMessageBox::information( parentw,
    678                item_act + tr( " Successful!" ),
    679                tr( "The \"%1\" action was successfully performed." )
    680                .arg( item_act ) );
     679         //QMessageBox::information( parentw,
     680         //      item_act + tr( " Successful!" ),
     681         //      tr( "The \"%1\" action was successfully performed." )
     682         //      .arg( item_act ) );
     683         lb_status->setText( tr( "\"%1\" Success!" ).arg( item_act ) );
    681684      }
    682685
     
    688691               .arg( item_act ).arg( stat )
    689692               + "\n\n" + da_process->lastError() );
     693         lb_status->setText( tr( "\"%1\" ERROR!" ).arg( item_act ) );
    690694      }
    691695   }
     
    693697   else
    694698   {  // cancel was selected:  report it
    695       QMessageBox::information( parentw,
    696             item_act + tr( " Cancelled!" ),
    697             tr( "The \"%1\" action was cancelled." ).arg( item_act ) );
     699      //QMessageBox::information( parentw,
     700      //      item_act + tr( " Cancelled!" ),
     701      //      tr( "The \"%1\" action was cancelled." ).arg( item_act ) );
     702      lb_status->setText( tr( "\"%1\" Cancelled!" ).arg( item_act ) );
    698703   }
    699704}
Note: See TracChangeset for help on using the changeset viewer.