1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 18:26:34 +01:00

Automatic styling screwup fix

This commit is contained in:
Mladen Pejaković 2012-01-24 15:21:16 +01:00
parent beca87fe19
commit 5d057f9107
2 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
ui->startProfile->addItem(actProfileName);
QDir profilesDir(mApp->PROFILEDIR + "profiles/");
QStringList list_ = profilesDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
foreach(const QString & name, list_) {
foreach(const QString &name, list_) {
if (actProfileName == name) {
continue;
}
@ -346,7 +346,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
QDir lanDir(mApp->TRANSLATIONSDIR);
QStringList list = lanDir.entryList(QStringList("*.qm"));
foreach(const QString & name, list) {
foreach(const QString &name, list) {
if (name.startsWith("qt_") || name == activeLanguage) {
continue;
}

View File

@ -520,7 +520,7 @@ void WebView::createContextMenu(QMenu* menu, const QWebHitTestResult &hitTest, c
QMenu* pageMenu = page()->createStandardContextMenu();
int i = 0;
foreach(QAction * act, pageMenu->actions()) {
foreach(QAction* act, pageMenu->actions()) {
if (act->isSeparator()) {
menu->addSeparator();
continue;