Skip to content

Commit c88243a

Browse files
committed
Make "previous tab" and "next tab" actions cycle rather than stop at first/last tab.
1 parent d84f66c commit c88243a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

MiniZincIDE/CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
2019-12-09
22
v2.4.1
33
- Display error message when submission to MOOC provider fails.
4+
- Fix shift left and shift right indentation behaviour when selecting
5+
text backwards.
6+
- Make "previous tab" and "next tab" actions cycle rather than stop at
7+
first/last tab.
48
v2.4.0
59
- Parse timing and statistics output produced by compiler, and display as
610
profiling information next to each line in the model.

MiniZincIDE/mainwindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4562,13 +4562,17 @@ void MainWindow::on_actionPrevious_tab_triggered()
45624562
{
45634563
if (ui->tabWidget->currentIndex() > 0) {
45644564
ui->tabWidget->setCurrentIndex(ui->tabWidget->currentIndex()-1);
4565+
} else {
4566+
ui->tabWidget->setCurrentIndex(ui->tabWidget->count()-1);
45654567
}
45664568
}
45674569

45684570
void MainWindow::on_actionNext_tab_triggered()
45694571
{
45704572
if (ui->tabWidget->currentIndex() < ui->tabWidget->count()-1) {
45714573
ui->tabWidget->setCurrentIndex(ui->tabWidget->currentIndex()+1);
4574+
} else {
4575+
ui->tabWidget->setCurrentIndex(0);
45724576
}
45734577
}
45744578

0 commit comments

Comments
 (0)