void ClearPrivateData::clearWebDatabases() { const QString &profile = mApp->currentProfilePath(); QWebDatabase::removeAllDatabases(); qz_removeDir(profile + "Databases"); }
void Preferences::deleteProfile() { QString name = ui->startProfile->currentText(); QMessageBox::StandardButton button = QMessageBox::warning(this, tr("Confirmation"), tr("Are you sure to permanently delete \"%1\" profile? This action cannot be undone!").arg(name), QMessageBox::Yes | QMessageBox::No); if (button != QMessageBox::Yes) { return; } qz_removeDir(mApp->PROFILEDIR + "profiles/" + name); ui->startProfile->removeItem(ui->startProfile->currentIndex()); }
void ClearPrivateData::clearLocalStorage() { const QString &profile = mApp->currentProfilePath(); qz_removeDir(profile + "LocalStorage"); }