1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-10 01:04:27 +02:00

Compare commits

...

3 Commits
2.3 ... 2.4

Author SHA1 Message Date
4a2c7b19fb Version 2.4 2015-12-19 13:16:51 +01:00
3bba3d6cd7 Fixed navigation logic 2015-12-19 13:15:13 +01:00
0374e59bce Fixed crash when zooming with no track loaded. 2015-12-19 12:57:09 +01:00
4 changed files with 8 additions and 14 deletions

View File

@ -63,7 +63,7 @@ Section "GPXSee (required)" SEC_APP
; Write the uninstall keys for Windows ; Write the uninstall keys for Windows
WriteRegStr HKCU "${REGENTRY}" "DisplayName" "GPXSee" WriteRegStr HKCU "${REGENTRY}" "DisplayName" "GPXSee"
WriteRegStr HKCU "${REGENTRY}" "Publisher" "Martin Tuma" WriteRegStr HKCU "${REGENTRY}" "Publisher" "Martin Tuma"
WriteRegStr HKCU "${REGENTRY}" "DisplayVersion" "2.3" WriteRegStr HKCU "${REGENTRY}" "DisplayVersion" "2.4"
WriteRegStr HKCU "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"' WriteRegStr HKCU "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKCU "${REGENTRY}" "NoModify" 1 WriteRegDWORD HKCU "${REGENTRY}" "NoModify" 1
WriteRegDWORD HKCU "${REGENTRY}" "NoRepair" 1 WriteRegDWORD HKCU "${REGENTRY}" "NoRepair" 1

View File

@ -3,7 +3,7 @@
#define APP_NAME "GPXSee" #define APP_NAME "GPXSee"
#define APP_HOMEPAGE "http://tumic.wz.cz/gpxsee" #define APP_HOMEPAGE "http://tumic.wz.cz/gpxsee"
#define APP_VERSION "2.3" #define APP_VERSION "2.4"
#define FONT_FAMILY "Arial" #define FONT_FAMILY "Arial"
#define FONT_SIZE 12 #define FONT_SIZE 12

View File

@ -400,8 +400,10 @@ bool GUI::openFile(const QString &fileName)
_navigationActionGroup->setEnabled(true); _navigationActionGroup->setEnabled(true);
updateNavigationActions(); updateNavigationActions();
return true; return true;
} else } else {
updateNavigationActions();
return false; return false;
}
} }
bool GUI::loadFile(const QString &fileName) bool GUI::loadFile(const QString &fileName)
@ -537,7 +539,6 @@ void GUI::closeFile()
_files.clear(); _files.clear();
_fileActionGroup->setEnabled(false); _fileActionGroup->setEnabled(false);
_navigationActionGroup->setEnabled(false);
updateStatusBarInfo(); updateStatusBarInfo();
} }
@ -640,8 +641,6 @@ void GUI::next()
closeFile(); closeFile();
openFile(file); openFile(file);
updateNavigationActions();
} }
void GUI::prev() void GUI::prev()
@ -652,8 +651,6 @@ void GUI::prev()
closeFile(); closeFile();
openFile(file); openFile(file);
updateNavigationActions();
} }
void GUI::last() void GUI::last()
@ -664,8 +661,6 @@ void GUI::last()
closeFile(); closeFile();
openFile(file); openFile(file);
updateNavigationActions();
} }
void GUI::first() void GUI::first()
@ -676,8 +671,6 @@ void GUI::first()
closeFile(); closeFile();
openFile(file); openFile(file);
updateNavigationActions();
} }
void GUI::keyPressEvent(QKeyEvent *event) void GUI::keyPressEvent(QKeyEvent *event)
@ -704,6 +697,4 @@ void GUI::keyPressEvent(QKeyEvent *event)
closeFile(); closeFile();
openFile(file); openFile(file);
} }
updateNavigationActions();
} }

View File

@ -205,6 +205,9 @@ void Track::redraw()
void Track::wheelEvent(QWheelEvent *event) void Track::wheelEvent(QWheelEvent *event)
{ {
if (_tracks.isEmpty())
return;
QPointF pos = mapToScene(event->pos()); QPointF pos = mapToScene(event->pos());
qreal scale = _scale; qreal scale = _scale;