Skip to content

Commit

Permalink
Merge branch 'opentoonz:master' into update_vcpkg_libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Funinja authored Dec 6, 2023
2 parents 1eaaad5 + 261c423 commit 4c4f2ac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions toonz/sources/toonz/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,13 @@ Room *MainWindow::getCurrentRoom() const {
//-----------------------------------------------------------------------------

void MainWindow::onUndo() {
bool ret = TUndoManager::manager()->undo();
if (!ret) DVGui::error(QObject::tr("No more Undo operations available."));
ToolHandle *toolH = TApp::instance()->getCurrentTool();

// do not use undo if tool is currently in use
if (!toolH->isToolBusy()) {
bool ret = TUndoManager::manager()->undo();
if (!ret) DVGui::error(QObject::tr("No more Undo operations available."));
}
}

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit 4c4f2ac

Please sign in to comment.