mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix segfault on mouseOver at the Profile with an invalid dive selected ( trip )
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
605f42daa4
commit
61373eaccf
4 changed files with 16 additions and 7 deletions
|
|
@ -43,6 +43,8 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow()),
|
|||
ui->ListWidget->setCurrentIndex(sortModel->index(0,0, firstDiveOrTrip));
|
||||
else
|
||||
ui->ListWidget->setCurrentIndex(firstDiveOrTrip);
|
||||
|
||||
#if 0
|
||||
QAction *actionNextDive = new QAction(this);
|
||||
addAction(actionNextDive);
|
||||
actionNextDive->setShortcut(Qt::Key_Down);
|
||||
|
|
@ -51,6 +53,7 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow()),
|
|||
addAction(actionPreviousDive);
|
||||
actionPreviousDive->setShortcut(Qt::Key_Up);
|
||||
connect(actionPreviousDive, SIGNAL(triggered()), this, SLOT(previousDive_triggered()));
|
||||
#endif
|
||||
}
|
||||
|
||||
void MainWindow::redrawProfile()
|
||||
|
|
@ -58,6 +61,7 @@ void MainWindow::redrawProfile()
|
|||
ui->ProfileWidget->plot(get_dive(selected_dive));
|
||||
}
|
||||
|
||||
#if 0
|
||||
void MainWindow::nextDive_triggered()
|
||||
{
|
||||
// Get the current Selection:
|
||||
|
|
@ -147,6 +151,7 @@ void MainWindow::previousDive_triggered()
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void MainWindow::on_actionNew_triggered()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue