mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Fixed issue with showing warning after creating new profile
- warning noticing about unknown profile version
This commit is contained in:
parent
96ce82fdda
commit
59a05f16a7
|
@ -684,10 +684,16 @@ void Preferences::createProfile()
|
|||
QMessageBox::warning(this, tr("Error!"), tr("Cannot create profile directory!"));
|
||||
return;
|
||||
}
|
||||
|
||||
dir.cd(name);
|
||||
QFile(":data/browsedata.db").copy(dir.absolutePath() + "/browsedata.db");
|
||||
QFile(dir.absolutePath() + "/browsedata.db").setPermissions(QFile::ReadUser | QFile::WriteUser);
|
||||
|
||||
QFile versionFile(dir.absolutePath() + "/version");
|
||||
versionFile.open(QFile::WriteOnly);
|
||||
versionFile.write(QupZilla::VERSION.toUtf8());
|
||||
versionFile.close();
|
||||
|
||||
ui->startProfile->insertItem(0, name);
|
||||
ui->startProfile->setCurrentIndex(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user