diff options
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index cd566b7624..8a687cef47 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -255,8 +255,10 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters, Settings::Instance().RefreshWidgetVisibility(); if (!ResourcePack::Init()) + { ModalMessageBox::critical(this, tr("Error"), - tr("Error occured while loading some texture packs")); + tr("Error occurred while loading some texture packs")); + } for (auto& pack : ResourcePack::GetPacks()) { @@ -1377,16 +1379,15 @@ bool MainWindow::NetPlayJoin() { if (Core::IsRunning()) { - ModalMessageBox::critical( - nullptr, QObject::tr("Error"), - QObject::tr("Can't start a NetPlay Session while a game is still running!")); + ModalMessageBox::critical(nullptr, tr("Error"), + tr("Can't start a NetPlay Session while a game is still running!")); return false; } if (m_netplay_dialog->isVisible()) { - ModalMessageBox::critical(nullptr, QObject::tr("Error"), - QObject::tr("A NetPlay Session is already in progress!")); + ModalMessageBox::critical(nullptr, tr("Error"), + tr("A NetPlay Session is already in progress!")); return false; } @@ -1445,16 +1446,15 @@ bool MainWindow::NetPlayHost(const UICommon::GameFile& game) { if (Core::IsRunning()) { - ModalMessageBox::critical( - nullptr, QObject::tr("Error"), - QObject::tr("Can't start a NetPlay Session while a game is still running!")); + ModalMessageBox::critical(nullptr, tr("Error"), + tr("Can't start a NetPlay Session while a game is still running!")); return false; } if (m_netplay_dialog->isVisible()) { - ModalMessageBox::critical(nullptr, QObject::tr("Error"), - QObject::tr("A NetPlay Session is already in progress!")); + ModalMessageBox::critical(nullptr, tr("Error"), + tr("A NetPlay Session is already in progress!")); return false; } @@ -1478,9 +1478,8 @@ bool MainWindow::NetPlayHost(const UICommon::GameFile& game) if (!Settings::Instance().GetNetPlayServer()->is_connected) { ModalMessageBox::critical( - nullptr, QObject::tr("Failed to open server"), - QObject::tr( - "Failed to listen on port %1. Is another instance of the NetPlay server running?") + nullptr, tr("Failed to open server"), + tr("Failed to listen on port %1. Is another instance of the NetPlay server running?") .arg(host_port)); NetPlayQuit(); return false; |
