Mercurial > hg > tony
diff src/MainWindow.cpp @ 188:b970b39e1fab
Do not put layer files in Recent Files list (related to #881)
author | Chris Cannam |
---|---|
date | Tue, 04 Mar 2014 15:28:59 +0000 |
parents | dedd09297a3e |
children | e963bdbc0707 |
line wrap: on
line diff
--- a/src/MainWindow.cpp Tue Mar 04 14:10:37 2014 +0000 +++ b/src/MainWindow.cpp Tue Mar 04 15:28:59 2014 +0000 @@ -1282,9 +1282,9 @@ QAction *action = qobject_cast<QAction *>(obj); if (!action) { - cerr << "WARNING: MainWindow::openRecentFile: sender is not an action" - << endl; - return; + cerr << "WARNING: MainWindow::openRecentFile: sender is not an action" + << endl; + return; } QString path = action->text(); @@ -1610,8 +1610,6 @@ //!!! swap all data in to existing layer instead of this - m_recentFiles.addFile(source.getLocation()); - if (!source.isRemote()) { registerLastOpenedFilePath (FileFinder::LayerFile, @@ -1678,7 +1676,6 @@ if (error != "") { QMessageBox::critical(this, tr("Failed to write file"), error); } else { - m_recentFiles.addFile(path); emit activity(tr("Export layer to \"%1\"").arg(path)); } } @@ -1738,7 +1735,6 @@ if (error != "") { QMessageBox::critical(this, tr("Failed to write file"), error); } else { - m_recentFiles.addFile(path); emit activity(tr("Export layer to \"%1\"").arg(path)); } }