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;
|
return;
|
||||||
}
|
}
|
||||||
i++;
|
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>";
|
str = " <path_file_name>" + fRecentFile[j] + "</path_file_name>";
|
||||||
data.insert(i++, str);
|
data.insert(i++, str);
|
||||||
}
|
}
|
||||||
|
@ -1035,7 +1035,7 @@ void PTextEdit::load( const QString &f, const int index )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// add file name to recent file names
|
// 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
|
fillRecentFiles(); // update menu
|
||||||
|
|
||||||
// add the msr-file to the file system watchersssss
|
// add the msr-file to the file system watchersssss
|
||||||
|
@ -1130,7 +1130,7 @@ void PAdmin::saveRecentFiles()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
i++;
|
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>";
|
str = " <path_file_name>" + fRecentFile[j] + "</path_file_name>";
|
||||||
data.insert(i++, str);
|
data.insert(i++, str);
|
||||||
}
|
}
|
||||||
|
@ -1034,7 +1034,7 @@ void PTextEdit::load( const QString &f, const int index )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// add file name to recent file names
|
// 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
|
fillRecentFiles(); // update menu
|
||||||
|
|
||||||
// add the msr-file to the file system watchersssss
|
// add the msr-file to the file system watchersssss
|
||||||
|
Loading…
x
Reference in New Issue
Block a user