Skip to content

Commit

Permalink
ticket:4788 Add the saved files to recent files list
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Apr 26, 2018
1 parent d1e3551 commit 48aee2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -4027,6 +4027,11 @@ bool LibraryWidget::saveLibraryTreeItem(LibraryTreeItem *pLibraryTreeItem)
.arg(tr("Unable to save the file, unknown library type.")), Helper::ok);
result = false;
}
/* Ticket #4788. Add the file to the recent files list. */
if (result) {
QFileInfo fileInfo(pLibraryTreeItem->getFileName());
MainWindow::instance()->addRecentFile(fileInfo.absoluteFilePath(), Helper::utf8);
}
MainWindow::instance()->getStatusBar()->clearMessage();
MainWindow::instance()->hideProgressBar();
return result;
Expand Down

0 comments on commit 48aee2f

Please sign in to comment.