this was easier than I tougth.
From 558511d2d8697347b457979c613497db3b6151ea Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tomaz.canabr...@intel.com>
Date: Thu, 26 Jun 2014 15:48:46 -0300
Subject: [PATCH 7/8] Break really long line

Hard to read on the editor.

Signed-off-by: Tomaz Canabrava <tomaz.canabr...@intel.com>
---
 qt-ui/mainwindow.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 1b87ed9..c66e037 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -1201,7 +1201,10 @@ void MainWindow::loadFiles(const QStringList fileNames)
 
 void MainWindow::on_actionImportDiveLog_triggered()
 {
-	QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open Dive Log File"), lastUsedDir(), tr("Dive Log Files (*.xml *.uddf *.udcf *.csv *.jlb *.dld *.sde *.db);;XML Files (*.xml);;UDDF/UDCF Files(*.uddf *.udcf);;JDiveLog Files(*.jlb);;Suunto Files(*.sde *.db);;CSV Files(*.csv);;All Files(*)"));
+	QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open Dive Log File"), lastUsedDir(),
+		tr("Dive Log Files (*.xml *.uddf *.udcf *.csv *.jlb *.dld *.sde *.db);;"
+			"XML Files (*.xml);;UDDF/UDCF Files(*.uddf *.udcf);;JDiveLog Files(*.jlb);;"
+			"Suunto Files(*.sde *.db);;CSV Files(*.csv);;All Files(*)"));
 
 	if (fileNames.isEmpty())
 		return;
-- 
2.0.0

From 791225e58e2a0c3aabca258e05b7507942ea808b Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tomaz.canabr...@intel.com>
Date: Thu, 26 Jun 2014 16:16:53 -0300
Subject: [PATCH 8/8] Re-enable possibility to edit manually added dive.

This one-liner readds the possibility to edit manually
added dives. tested because I didn't belived that it was
going to be so easy, but it seems that it was.

Signed-off-by: Tomaz Canabrava <tomaz.canabr...@intel.com>
---
 qt-ui/mainwindow.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index c66e037..7491023 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -1237,10 +1237,7 @@ void MainWindow::editCurrentDive()
 	if (defaultDC == "manually added dive") {
 		disableDcShortcuts();
 		DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);
-		//TODO: I BROKE THIS BY COMMENTING THE LINE BELOW
-		// and I'm sleepy now, so I think I should not try to fix right away.
-		// we don't setCurrentIndex anymore, we ->setPlanState() or ->setAddState() on the ProfileView.
-		//ui.stackedWidget->setCurrentIndex(PLANNERPROFILE); // Planner.
+		ui.newProfile->setAddState();
 		ui.infoPane->setCurrentIndex(MAINTAB);
 		DivePlannerPointsModel::instance()->loadFromDive(d);
 		ui.InfoWidget->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
-- 
2.0.0

_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to