forked from qt-creator/qt-creator
Utils: Rename most FilePath::{from,to}Variant uses to {from,to}Settings
Specifies the main purpose more clearly. The remaining ones a "true" (internal) variants in models and as action data. Change-Id: I8dd3c846e419f29d88283c2f48268ef6685b19fe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -482,10 +482,8 @@ bool SessionManager::save()
|
||||
}
|
||||
} else {
|
||||
// save the startup project
|
||||
if (d->m_startupProject) {
|
||||
data.insert(QLatin1String("StartupProject"),
|
||||
d->m_startupProject->projectFilePath().toString());
|
||||
}
|
||||
if (d->m_startupProject)
|
||||
data.insert("StartupProject", d->m_startupProject->projectFilePath().toSettings());
|
||||
|
||||
const QColor c = StyleHelper::requestedBaseColor();
|
||||
if (c.isValid()) {
|
||||
@@ -941,7 +939,7 @@ void SessionManagerPrivate::askUserAboutFailedProjects()
|
||||
|
||||
void SessionManagerPrivate::restoreStartupProject(const PersistentSettingsReader &reader)
|
||||
{
|
||||
const FilePath startupProject = FilePath::fromVariant(reader.restoreValue("StartupProject"));
|
||||
const FilePath startupProject = FilePath::fromSettings(reader.restoreValue("StartupProject"));
|
||||
if (!startupProject.isEmpty()) {
|
||||
for (Project *pro : std::as_const(m_projects)) {
|
||||
if (pro->projectFilePath() == startupProject) {
|
||||
|
||||
Reference in New Issue
Block a user