|
From: <cn...@us...> - 2023-03-15 18:23:57
|
Revision: 1340
http://sourceforge.net/p/seq/svn/1340
Author: cn187
Date: 2023-03-15 18:23:54 +0000 (Wed, 15 Mar 2023)
Log Message:
-----------
Add "none" placeholder when no layers are loaded
Modified Paths:
--------------
showeq/trunk/src/map.cpp
Modified: showeq/trunk/src/map.cpp
===================================================================
--- showeq/trunk/src/map.cpp 2023-03-15 18:23:47 UTC (rev 1339)
+++ showeq/trunk/src/map.cpp 2023-03-15 18:23:54 UTC (rev 1340)
@@ -5262,8 +5262,14 @@
}
}
+ int numLayers = m_map->mapMgr()->mapData().numLayers();
+
QLabel* tmpLabel = new QLabel(m_layersBox);
- tmpLabel->setText("Layers:");
+ if (numLayers == 0)
+ tmpLabel->setText("Layers: None");
+ else
+ tmpLabel->setText("Layers:");
+
layersBoxLayout->addWidget(tmpLabel);
QToolButton* tmpButton = NULL;
@@ -5271,7 +5277,6 @@
QAction* tmpAction = NULL;
- int numLayers = m_map->mapMgr()->mapData().numLayers();
for (int i = 0; i < numLayers; ++i)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|