mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove MainWindow::refreshProfile()
This only calls MainWindow::showProfile(), so simply call that directly. Moreover make two "public slots" private member functions, since these were only called locally. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4c46a11ed1
commit
2657ec9016
2 changed files with 3 additions and 9 deletions
|
@ -627,16 +627,11 @@ bool MainWindow::plannerStateClean()
|
|||
return true;
|
||||
}
|
||||
|
||||
void MainWindow::refreshProfile()
|
||||
{
|
||||
showProfile();
|
||||
}
|
||||
|
||||
void MainWindow::planCanceled()
|
||||
{
|
||||
// while planning we might have modified the displayed_dive
|
||||
// let's refresh what's shown on the profile
|
||||
refreshProfile();
|
||||
showProfile();
|
||||
refreshDisplay();
|
||||
}
|
||||
|
||||
|
|
|
@ -151,9 +151,6 @@ signals:
|
|||
public
|
||||
slots:
|
||||
void readSettings();
|
||||
void refreshDisplay();
|
||||
void showProfile();
|
||||
void refreshProfile();
|
||||
void planCanceled();
|
||||
void planCreated();
|
||||
// Some shortcuts like "change DC" or "copy/paste dive components"
|
||||
|
@ -186,6 +183,8 @@ private:
|
|||
void showProgressBar();
|
||||
void hideProgressBar();
|
||||
void writeSettings();
|
||||
void refreshDisplay();
|
||||
void showProfile();
|
||||
int file_save();
|
||||
int file_save_as();
|
||||
void saveSplitterSizes();
|
||||
|
|
Loading…
Add table
Reference in a new issue