src/gui.cpp

changeset 348
20134b519f90
parent 344
55fcf67230fd
child 351
6fdd32c4886c
equal deleted inserted replaced
347:02e10ed4f8eb 348:20134b519f90
543 } 543 }
544 544
545 // ============================================================================= 545 // =============================================================================
546 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 546 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
547 // ============================================================================= 547 // =============================================================================
548 EXTERN_ACTION (undo); 548 EXTERN_ACTION( undo );
549 EXTERN_ACTION (redo); 549 EXTERN_ACTION( redo );
550 EXTERN_ACTION( open );
550 void ForgeWindow::slot_action () { 551 void ForgeWindow::slot_action () {
551 // Open the history so we can record the edits done during this action. 552 // Open the history so we can record the edits done during this action.
552 if (sender () != ACTION (undo) && sender () != ACTION (redo)) 553 if( sender() != ACTION( undo ) && sender() != ACTION( redo ) && sender() != ACTION( open ))
553 g_curfile->openHistory (); 554 g_curfile->openHistory ();
554 555
555 // Get the action that triggered this slot. 556 // Get the action that triggered this slot.
556 QAction* qAct = static_cast<QAction*> (sender ()); 557 QAction* qAct = static_cast<QAction*> (sender ());
557 558

mercurial