mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Automatic styling screwup fix
This commit is contained in:
parent
beca87fe19
commit
5d057f9107
|
@ -160,7 +160,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
||||||
ui->startProfile->addItem(actProfileName);
|
ui->startProfile->addItem(actProfileName);
|
||||||
QDir profilesDir(mApp->PROFILEDIR + "profiles/");
|
QDir profilesDir(mApp->PROFILEDIR + "profiles/");
|
||||||
QStringList list_ = profilesDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
QStringList list_ = profilesDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||||
foreach(const QString & name, list_) {
|
foreach(const QString &name, list_) {
|
||||||
if (actProfileName == name) {
|
if (actProfileName == name) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -346,7 +346,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
||||||
|
|
||||||
QDir lanDir(mApp->TRANSLATIONSDIR);
|
QDir lanDir(mApp->TRANSLATIONSDIR);
|
||||||
QStringList list = lanDir.entryList(QStringList("*.qm"));
|
QStringList list = lanDir.entryList(QStringList("*.qm"));
|
||||||
foreach(const QString & name, list) {
|
foreach(const QString &name, list) {
|
||||||
if (name.startsWith("qt_") || name == activeLanguage) {
|
if (name.startsWith("qt_") || name == activeLanguage) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -520,7 +520,7 @@ void WebView::createContextMenu(QMenu* menu, const QWebHitTestResult &hitTest, c
|
||||||
QMenu* pageMenu = page()->createStandardContextMenu();
|
QMenu* pageMenu = page()->createStandardContextMenu();
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
foreach(QAction * act, pageMenu->actions()) {
|
foreach(QAction* act, pageMenu->actions()) {
|
||||||
if (act->isSeparator()) {
|
if (act->isSeparator()) {
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user