Commit 3d00780b authored by dogmaphobic's avatar dogmaphobic

Removed duplicate method. Don and I both added the same method concurrently.

parent 86fd4a29
......@@ -126,12 +126,8 @@ public:
/// @brief Restore (and connects) the last used connection (if any)
void restoreLastUsedConnection();
#ifdef UNITTEST_BUILD
// Returns a pointer to the MainToolBar so that unit tests can change views.
/// @brief Gets a pointer to the Main Tool Bar
MainToolBar* getMainToolBar(void) { return _mainToolBar; }
#endif
MainToolBar* getToolBar() { return _mainToolBar; }
public slots:
/** @brief Show the application settings */
......
......@@ -177,20 +177,20 @@ void SettingsDialog::_selectSavedFilesDirectory(void)
void SettingsDialog::on_showGPS_clicked(bool checked)
{
_mainWindow->getToolBar()->viewStateChanged(TOOL_BAR_SHOW_GPS, checked);
_mainWindow->getMainToolBar()->viewStateChanged(TOOL_BAR_SHOW_GPS, checked);
}
void SettingsDialog::on_showBattery_clicked(bool checked)
{
_mainWindow->getToolBar()->viewStateChanged(TOOL_BAR_SHOW_BATTERY, checked);
_mainWindow->getMainToolBar()->viewStateChanged(TOOL_BAR_SHOW_BATTERY, checked);
}
void SettingsDialog::on_showMessages_clicked(bool checked)
{
_mainWindow->getToolBar()->viewStateChanged(TOOL_BAR_SHOW_MESSAGES, checked);
_mainWindow->getMainToolBar()->viewStateChanged(TOOL_BAR_SHOW_MESSAGES, checked);
}
void SettingsDialog::on_showMav_clicked(bool checked)
{
_mainWindow->getToolBar()->viewStateChanged(TOOL_BAR_SHOW_MAV, checked);
_mainWindow->getMainToolBar()->viewStateChanged(TOOL_BAR_SHOW_MAV, checked);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment