Esempio n. 1
0
void ClearPrivateData::clearWebDatabases()
{
    const QString &profile = mApp->currentProfilePath();

    QWebDatabase::removeAllDatabases();
    qz_removeDir(profile + "Databases");
}
Esempio n. 2
0
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());
}
Esempio n. 3
0
void ClearPrivateData::clearLocalStorage()
{
    const QString &profile = mApp->currentProfilePath();

    qz_removeDir(profile + "LocalStorage");
}