From 1eb783aae348f906056cee17cb65dfd507429901 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 31 May 2014 13:43:48 +0200 Subject: - added a new mod type that represents files handled externally (i.e. DLCs) as mods in MO - hashes of file names in bsa files are no longer checked all the time - author and description is now read from esp files - rewrote the code that fixes modlists after a rename, should be a bit more robust - fixes to qt 5 and msvc 2013 compatibility - started to update the tutorial (not done yet!) - bugfix: counter for the problems badge wasn't calculated correctly --- src/browserdialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/browserdialog.cpp') diff --git a/src/browserdialog.cpp b/src/browserdialog.cpp index a832f1a3..81a5db68 100644 --- a/src/browserdialog.cpp +++ b/src/browserdialog.cpp @@ -255,16 +255,16 @@ void BrowserDialog::on_searchEdit_returnPressed() } } -void BrowserDialog::on_browserTabWidget_currentChanged(QWidget *current) +void BrowserDialog::on_refreshBtn_clicked() +{ + getCurrentView()->reload(); +} + +void BrowserDialog::on_browserTabWidget_currentChanged(int index) { - BrowserView *currentView = qobject_cast(current); + BrowserView *currentView = qobject_cast(ui->browserTabWidget->widget(index)); if (currentView != NULL) { ui->backBtn->setEnabled(currentView->history()->canGoBack()); ui->fwdBtn->setEnabled(currentView->history()->canGoForward()); } } - -void BrowserDialog::on_refreshBtn_clicked() -{ - getCurrentView()->reload(); -} -- cgit v1.3.1