summaryrefslogtreecommitdiff
path: root/src/modinfodialog.cpp
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-04-17 21:16:44 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-04-17 21:51:22 +0200
commitf2762035171f60fdd0b16052c07f67a0f79d60a8 (patch)
tree08cac174a87692239dade12dd388535216991ccd /src/modinfodialog.cpp
parentb64fd1ed4d68fc64ac061b0f126af54cf7147462 (diff)
Changed mod Information dialog "Next" and "Previous" buttons to remember the currently viewed tab.
Diffstat (limited to 'src/modinfodialog.cpp')
-rw-r--r--src/modinfodialog.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp
index 705f0019..c25041f2 100644
--- a/src/modinfodialog.cpp
+++ b/src/modinfodialog.cpp
@@ -1448,14 +1448,20 @@ void ModInfoDialog::on_endorseBtn_clicked()
void ModInfoDialog::on_nextButton_clicked()
{
- emit modOpenNext();
- this->accept();
+ int currentTab = ui->tabWidget->currentIndex();
+ int tab = m_RealTabPos[currentTab];
+
+ emit modOpenNext(tab);
+ this->accept();
}
void ModInfoDialog::on_prevButton_clicked()
{
- emit modOpenPrev();
- this->accept();
+ int currentTab = ui->tabWidget->currentIndex();
+ int tab = m_RealTabPos[currentTab];
+
+ emit modOpenPrev(tab);
+ this->accept();
}