1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Fixed issue with showing warning after creating new profile

- warning noticing about unknown profile version
This commit is contained in:
nowrep 2012-08-01 23:02:04 +02:00
parent 96ce82fdda
commit 59a05f16a7

View File

@ -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);
}