From 9cc942376e3b9b709de9bb9c58f9ae63ab1502e0 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 11 Mar 2014 18:54:28 -0300 Subject: Only anim if not first dive when openning subsurface with a divelog. The animation appeared when the user started subsurface with a default file, wich was a little annoying since it didn't had a 'from' position to go and it was also increasing it's size on some window managers that do subtle windows animations when a program starts. This patch treats the first dive opened when the program loads with a divelog pa rameter differently as the following ones storing the velocity value on a temporary, and reassigning it later. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/mainwindow.h') diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 70b9793f7..94655e516 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -78,6 +78,8 @@ public: void cleanUpEmpty(); void setToolButtonsEnabled(bool enabled); ProfileWidget2 *graphics() const; + void setLoadedWithFiles(bool filesFromCommandLine); + bool filesFromCommandLine() const; private slots: /* file menu action */ @@ -165,6 +167,7 @@ private: void saveSplitterSizes(); QString lastUsedDir(); void updateLastUsedDir(const QString &s); + bool filesAsArguments; }; MainWindow *mainWindow(); -- cgit v1.2.3-70-g09d2