summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-08-25 18:12:02 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-25 17:58:30 -0700
commit028f0401f652334d033cb01b7c1a49609b9e69b4 (patch)
treea3539f2f682f8503beb93570cb947ee1a5803a06 /qt-ui/mainwindow.cpp
parent6c43685edaf203e50e88f98bc6d8e097736f19a6 (diff)
downloadsubsurface-028f0401f652334d033cb01b7c1a49609b9e69b4.tar.gz
Disable profile when in dive site edit mode
I didn't have time to create / finish the photos widget, so I'm adding back the profile view while in dive site edit mode, but disabling it. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 7593caf47..0307b081f 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -132,14 +132,14 @@ MainWindow::MainWindow() : QMainWindow(),
registerApplicationState("EditDive", mainTab, profileContainer, diveListView, globeGps );
registerApplicationState("PlanDive", plannerWidget, profileContainer, plannerSettings, plannerDetails );
registerApplicationState("EditPlannedDive", plannerWidget, profileContainer, diveListView, globeGps );
- registerApplicationState("EditDiveSite", diveSiteEdit, diveSitePictures, diveListView, globeGps);
+ registerApplicationState("EditDiveSite", diveSiteEdit, profileContainer, diveListView, globeGps);
setStateProperties("Default", enabledList, enabledList, enabledList,enabledList);
setStateProperties("AddDive", enabledList, enabledList, enabledList,enabledList);
setStateProperties("EditDive", enabledList, enabledList, enabledList,enabledList);
setStateProperties("PlanDive", enabledList, enabledList, enabledList,enabledList);
setStateProperties("EditPlannedDive", enabledList, enabledList, enabledList,enabledList);
- setStateProperties("EditDiveSite", enabledList, enabledList, disabledList, enabledList);
+ setStateProperties("EditDiveSite", enabledList, disabledList, disabledList, enabledList);
setApplicationState("Default");