1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[ProfileManager] Fix currentProfile() cutting last char of profile name

This commit is contained in:
nowrep 2014-03-16 15:31:19 +01:00
parent b9c58b14b3
commit 20cd658274
2 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,6 @@ bool ProfileManager::removeProfile(const QString &profileName)
QString ProfileManager::currentProfile() const
{
QString path = DataPaths::currentProfilePath();
path = path.mid(0, path.size() - 1);
return path.mid(path.lastIndexOf(QLatin1Char('/')) + 1);
}

View File

@ -78,6 +78,7 @@ QFuture<QSqlQuery> SqlDatabase::execAsync(const QSqlQuery &query)
return QtConcurrent::run(this, &SqlDatabase::exec, query);
}
// instance
SqlDatabase* SqlDatabase::instance()
{
return qz_sql_database();