slight improvement in handling of the recent msr-files.

This commit is contained in:
suter_a 2025-03-30 15:30:46 +02:00
parent 79255750ce
commit 7556a2e243
4 changed files with 4 additions and 4 deletions

View File

@ -1133,7 +1133,7 @@ void PAdmin::saveRecentFiles()
return;
}
i++;
for (int j=0; j<fRecentFile.size(); j++) {
for (int j=fRecentFile.size()-1; j>=0; j--) {
str = " <path_file_name>" + fRecentFile[j] + "</path_file_name>";
data.insert(i++, str);
}

View File

@ -1035,7 +1035,7 @@ void PTextEdit::load( const QString &f, const int index )
return;
// add file name to recent file names
fAdmin->addRecentFile(f); // keep it in admin
fAdmin->addRecentFile(QFileInfo(f).absoluteFilePath()); // keep it in admin
fillRecentFiles(); // update menu
// add the msr-file to the file system watchersssss

View File

@ -1130,7 +1130,7 @@ void PAdmin::saveRecentFiles()
return;
}
i++;
for (int j=0; j<fRecentFile.size(); j++) {
for (int j=fRecentFile.size()-1; j>=0; j--) {
str = " <path_file_name>" + fRecentFile[j] + "</path_file_name>";
data.insert(i++, str);
}

View File

@ -1034,7 +1034,7 @@ void PTextEdit::load( const QString &f, const int index )
return;
// add file name to recent file names
fAdmin->addRecentFile(f); // keep it in admin
fAdmin->addRecentFile(QFileInfo(f).absoluteFilePath()); // keep it in admin
fillRecentFiles(); // update menu
// add the msr-file to the file system watchersssss