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 |