1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Code cleanup

This commit is contained in:
Martin Tůma 2021-09-01 13:27:30 +02:00
parent 7f6ac2e4c3
commit 34669b68f5
2 changed files with 3 additions and 1 deletions

View File

@ -1911,7 +1911,7 @@ bool GUI::updateGraphTabs()
void GUI::updateDEMDownloadAction() void GUI::updateDEMDownloadAction()
{ {
_downloadDEMAction->setEnabled(!_options.demURL.isEmpty() _downloadDEMAction->setEnabled(!_dem->url().isEmpty()
&& !_dem->checkTiles(_mapView->boundingRect())); && !_dem->checkTiles(_mapView->boundingRect()));
} }

View File

@ -22,6 +22,8 @@ public:
bool loadTiles(const RectC &rect); bool loadTiles(const RectC &rect);
bool checkTiles(const RectC &rect) const; bool checkTiles(const RectC &rect) const;
const QString &url() const {return _url;}
signals: signals:
void finished(); void finished();