From 48b1c6e240238f7dc3965735dfb00900d2c75383 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 31 Mar 2016 19:33:44 +0200 Subject: Bug 764359 - Recent File list allows only 2 entries Looks like the update of the GUI in respect to the "recent list" interfered with the reading of the values in the external list (which was updated during GUI update). Order of items was also reversed. --- addon/doxywizard/doxywizard.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index e292d0c..8af77c8 100644 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -368,14 +368,16 @@ void MainWindow::loadSettings() } } - for (int i=0;i=0;i--) { QString entry = m_settings.value(QString().sprintf("recent/config%d",i)).toString(); if (!entry.isEmpty() && QFileInfo(entry).exists()) { - addRecentFile(entry); + addRecentFileList(entry); } } + updateRecentFile(); } @@ -402,6 +404,11 @@ void MainWindow::selectRunTab() void MainWindow::addRecentFile(const QString &fileName) { + addRecentFileList(fileName); + updateRecentFile(); +} +void MainWindow::addRecentFileList(const QString &fileName) +{ int i=m_recentFiles.indexOf(fileName); if (i!=-1) m_recentFiles.removeAt(i); @@ -415,8 +422,11 @@ void MainWindow::addRecentFile(const QString &fileName) m_recentFiles.removeLast(); m_recentFiles.prepend(fileName); } +} +void MainWindow::updateRecentFile(void) +{ m_recentMenu->clear(); - i=0; + int i=0; foreach( QString str, m_recentFiles ) { m_recentMenu->addAction(str); -- cgit v0.12 From 0f53af1270a0032d4c24d93aeb7cce245427bf8d Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 31 Mar 2016 19:34:50 +0200 Subject: Bug 764359 - Recent File list allows only 2 entries Looks like the update of the GUI in respect to the "recent list" interfered with the reading of the values in the external list (which was updated during GUI update). Order of items was also reversed. --- addon/doxywizard/doxywizard.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addon/doxywizard/doxywizard.h b/addon/doxywizard/doxywizard.h index 189972f..1f6cb72 100644 --- a/addon/doxywizard/doxywizard.h +++ b/addon/doxywizard/doxywizard.h @@ -58,6 +58,8 @@ class MainWindow : public QMainWindow MainWindow(); void saveConfig(const QString &fileName); void addRecentFile(const QString &fileName); + void addRecentFileList(const QString &fileName); + void updateRecentFile(void); void updateConfigFileName(const QString &fileName); void setWorkingDir(const QString &dirName); void updateLaunchButtonState(); -- cgit v0.12 ommit/Doc/c-api/init.rst?id=73cdb0c6b2c3861e034004cdc57be5e726876078'>bpo-38816: Add notes in the C-API docs about fork in subinterpreters. (GH-17176)Eric Snow2019-11-151-1/+22 * bpo-38600: NULL -> ``NULL``. (GH-17001)Serhiy Storchaka2019-10-301-1/+1 * bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950)Serhiy Storchaka2019-10-301-38/+38 * bpo-38266: Revert bpo-37878: Make PyThreadState_DeleteCurrent() Internal (GH-...Joannah Nanjekye2019-10-041-0/+8 * bpo-38234: Py_SetPath() uses the program full path (GH-16357)Victor Stinner2019-09-241-2/+6 * bpo-37363: Document internal audit events (GH-14663)Christian Heimes2019-09-121-1/+6 * bpo-36763, doc: Add links in the new C API init doc (GH-15433)Victor Stinner2019-08-231-0/+2 * bpo-36487: Make C-API docs clear about what the main interpreter is. (gh-12666)Joannah Nanjekye2019-08-021-4/+12 * Doc: Replace the deprecated highlightlang directive by highlight. (#13377)Stéphane Wirtel2019-05-171-1/+1 * bpo-36728: Remove PyEval_ReInitThreads documentation (GH-13282)Victor Stinner2019-05-131-7/+0 * bpo-36475: Finalize PyEval_AcquireLock() and PyEval_AcquireThread() properly ...Joannah Nanjekye2019-04-29