Fixed issue with showing warning after creating new profile

- warning noticing about unknown profile version
remotes/origin/falkon
nowrep 14 years ago
parent 96ce82fdda
commit 59a05f16a7
  1. 6
      src/lib/preferences/preferences.cpp

@ -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…
Cancel
Save