Commit d97f34c3 authored by Xuetian Weng's avatar Xuetian Weng
Browse files

kimpanel: fix crash. first argument of qapp need to be reference.

parent 4046be3c
......@@ -178,7 +178,7 @@ static void initIconMap(QMap<QByteArray, QByteArray>& iconMap)
iconMap["gtk-zoom-out"] = "zoom-out";
}
App::App(int argc, char* argv[]): QGuiApplication(argc, argv)
App::App(int &argc, char* argv[]): QGuiApplication(argc, argv)
,m_eventFilter(new XcbEventFilter)
,m_init(false)
,m_bus(ibus_bus_new ())
......
......@@ -42,7 +42,7 @@ class App : public QGuiApplication {
Q_OBJECT
public:
typedef QPair< uint, uint > TriggerKey;
App(int argc, char* argv[]);
App(int &argc, char* argv[]);
virtual ~App();
void setTriggerKeys(QList< TriggerKey > triggersList);
void setDoGrab(bool doGrab);
......
......@@ -28,7 +28,7 @@
class IBusPanelLauncher : public QCoreApplication {
Q_OBJECT
public:
IBusPanelLauncher(int argc, char *argv[]) : QCoreApplication(argc, argv), m_watcher(new QDBusServiceWatcher(this)) {
IBusPanelLauncher(int &argc, char *argv[]) : QCoreApplication(argc, argv), m_watcher(new QDBusServiceWatcher(this)) {
m_watcher->setConnection(QDBusConnection::sessionBus());
QMetaObject::invokeMethod(this, "init", Qt::QueuedConnection);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment