summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-01-04 16:05:39 +0100
committerTannin <devnull@localhost>2014-01-04 16:05:39 +0100
commit0ea7d99b9f2a2119abce2454ae4ed13fcf065895 (patch)
tree9d0262f7f6d06196c22873de6d58751ab6b4a130 /src/mainwindow.cpp
parente45b747c82832d227b9ee3ae9dcb214c4c7f67b5 (diff)
parent6cffbd4f274106ac09d3729e104bf526141d7d79 (diff)
Merge
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 77e4cb3b..1f1d5f95 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -231,9 +231,9 @@ MainWindow::MainWindow(const QString &exeName, QSettings &initSettings, QWidget
ui->savegameList->installEventFilter(this);
ui->savegameList->setMouseTracking(true);
-
connect(&m_DownloadManager, SIGNAL(showMessage(QString)), this, SLOT(showMessage(QString)));
connect(&m_DownloadManager, SIGNAL(downloadSpeed(QString,int)), this, SLOT(downloadSpeed(QString,int)));
+ connect(&m_DownloadManager, SIGNAL(downloadAdded()), ui->downloadView, SLOT(scrollToBottom()));
connect(ui->savegameList, SIGNAL(itemEntered(QListWidgetItem*)), this, SLOT(saveSelectionChanged(QListWidgetItem*)));
@@ -781,6 +781,8 @@ void MainWindow::showEvent(QShowEvent *event)
ui->groupCombo->setCurrentIndex(grouping);
allowListResize();
+
+ m_Settings.registerAsNXMHandler(false);
}
@@ -4026,15 +4028,10 @@ void MainWindow::on_actionSettings_triggered()
NexusInterface::instance()->setNMMVersion(m_Settings.getNMMVersion());
}
+
void MainWindow::on_actionNexus_triggered()
{
- std::wstring nxmPath = ToWString(QApplication::applicationDirPath() + "/nxmhandler.exe");
- std::wstring executable = ToWString(QApplication::applicationFilePath());
- ::ShellExecuteW(NULL, L"open", nxmPath.c_str(),
- (std::wstring(L"reg ") + GameInfo::instance().getGameShortName() + L" \"" + executable + L"\"").c_str(), NULL, SW_SHOWNORMAL);
-
::ShellExecuteW(NULL, L"open", GameInfo::instance().getNexusPage(false).c_str(), NULL, NULL, SW_SHOWNORMAL);
- ui->tabWidget->setCurrentIndex(4);
}
@@ -4054,6 +4051,7 @@ void MainWindow::linkClicked(const QString &url)
void MainWindow::downloadRequestedNXM(const QString &url)
{
QString username, password;
+ qDebug("download requested: %s", qPrintable(url));
if (!m_LoginAttempted && !NexusInterface::instance()->getAccessManager()->loggedIn() &&
(m_Settings.getNexusLogin(username, password) ||