slight improvement in handling of the recent msr-files.
This commit is contained in:
parent
79255750ce
commit
7556a2e243
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user