forked from qt-creator/qt-creator
Project: Add setDocument method
Add setDocument method, implement document method, use this in all projects. Change-Id: I5018bf7c2739665c13eee340184ce7c41fd319bb Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -1027,7 +1027,7 @@ bool SessionManager::loadSession(const QString &session)
|
||||
auto end = oldProjects.end();
|
||||
|
||||
while (it != end) {
|
||||
int index = fileList.indexOf((*it)->document()->filePath().toString());
|
||||
int index = fileList.indexOf((*it)->projectFilePath().toString());
|
||||
if (index != -1) {
|
||||
fileList.removeAt(index);
|
||||
it = oldProjects.erase(it);
|
||||
|
||||
Reference in New Issue
Block a user