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:
parent
b9c58b14b3
commit
20cd658274
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user