From 3b3717a0214a1a923ef004b90ace68197492d0ba Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 29 Jun 2013 21:10:53 +0200 Subject: - nxmhandler now has a ui to modify the proxy-handler - mo now registers itself with nxmhandler when launching the browser - pdbs are now generated for plugins - reverted configurator to pyqt4 --- src/mainwindow.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8027e13a..9dbce0f8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3195,7 +3195,7 @@ void MainWindow::on_modList_customContextMenuRequested(const QPoint &pos) } break; case ModInfo::ENDORSED_FALSE: { menu.addAction(tr("Endorse"), this, SLOT(endorse_clicked())); - menu.addAction(tr("Don't endorse"), this, SLOT(dontendorse_clicked())); + menu.addAction(tr("Won't endorse"), this, SLOT(dontendorse_clicked())); } break; case ModInfo::ENDORSED_NEVER: { menu.addAction(tr("Endorse"), this, SLOT(endorse_clicked())); @@ -3447,19 +3447,9 @@ void MainWindow::on_actionSettings_triggered() void MainWindow::on_actionNexus_triggered() { -/* QString username, password; - m_NexusDialog.openUrl(ToQString(GameInfo::instance().getNexusPage())); - - if (m_Settings.getNexusLogin(username, password)) { - m_NexusDialog.login(username, password); - } else { - m_NexusDialog.loadNexus(); - } - m_NexusDialog.show(); - m_NexusDialog.activateWindow(); - - QTabWidget *tabWidget = findChild("tabWidget"); - tabWidget->setCurrentIndex(4);*/ + std::wstring nxmPath = ToWString(QApplication::applicationDirPath() + "/nxmhandler.exe"); + ::ShellExecuteW(NULL, L"open", nxmPath.c_str(), + (std::wstring(L"reg ") + GameInfo::instance().getGameShortName() + L" " + nxmPath).c_str(), NULL, SW_SHOWNORMAL); ::ShellExecuteW(NULL, L"open", GameInfo::instance().getNexusPage().c_str(), NULL, NULL, SW_SHOWNORMAL); ui->tabWidget->setCurrentIndex(4); -- cgit v1.3.1