diff --git a/src/frontend/mainwindow.cpp b/src/frontend/mainwindow.cpp index 26e766b4..bf915f55 100644 --- a/src/frontend/mainwindow.cpp +++ b/src/frontend/mainwindow.cpp @@ -544,7 +544,7 @@ void MainWindow::getTabletMode() m_isShowInCenter = true; return; } - QDBusReply reply = interface->call("get_current_tabletmode"); + QDBusReply reply = interface.call("get_current_tabletmode"); if (!reply.isValid()) { m_isShowInCenter = true; return; diff --git a/src/frontend/vpnmainwindow.cpp b/src/frontend/vpnmainwindow.cpp index e91a5ecb..fe845a80 100644 --- a/src/frontend/vpnmainwindow.cpp +++ b/src/frontend/vpnmainwindow.cpp @@ -463,7 +463,7 @@ void vpnMainWindow::getTabletMode() m_isShowInCenter = true; return; } - QDBusReply reply = interface->call("get_current_tabletmode"); + QDBusReply reply = interface.call("get_current_tabletmode"); if (!reply.isValid()) { m_isShowInCenter = true; return;