summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e401a93e..a419151c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -490,7 +490,7 @@ void MainWindow::setupActions()
{
a = new KAction(i18n("Switch to Tab %1", i), this);
a->setShortcut(KShortcut(QString("Alt+%1").arg(i)));
- actionCollection()->addAction(QL1S(("switch_tab_" + QString::number(i)).toAscii()), a);
+ actionCollection()->addAction(QL1S(QString("switch_tab_" + QString::number(i)).toAscii()), a);
connect(a, SIGNAL(triggered(bool)), tabSignalMapper, SLOT(map()));
tabSignalMapper->setMapping(a, i);
}
@@ -502,7 +502,7 @@ void MainWindow::setupActions()
{
a = new KAction(i18n("Switch to Favorite Page %1", i), this);
a->setShortcut(KShortcut(QString("Ctrl+%1").arg(i)));
- actionCollection()->addAction(QL1S(("switch_favorite_" + QString::number(i)).toAscii()), a);
+ actionCollection()->addAction(QL1S(QString("switch_favorite_" + QString::number(i)).toAscii()), a);
connect(a, SIGNAL(triggered(bool)), favoritesSignalMapper, SLOT(map()));
favoritesSignalMapper->setMapping(a, i);
}
@@ -997,7 +997,7 @@ void MainWindow::viewPageSource()
out << code;
}
- KRun::runUrl(QL1S("file://") + temp.fileName(), QL1S("text/plain"), this, false);
+ KRun::runUrl(QString(QL1S("file://") + temp.fileName()), QL1S("text/plain"), this, false);
return;
}