Changeset 51930 in vbox
- Timestamp:
- Jul 8, 2014 12:52:57 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extradata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51929 r51930 1259 1259 /* Re-cache value only if strMachineID known already: */ 1260 1260 if (m_data.contains(strMachineID)) 1261 m_data[strMachineID][strKey] = strValue; 1261 { 1262 if (!strValue.isEmpty()) 1263 m_data[strMachineID][strKey] = strValue; 1264 else 1265 m_data[strMachineID].remove(strKey); 1266 } 1262 1267 1263 1268 /* Global extra-data 'change' event: */ … … 1296 1301 #endif /* Q_WS_MAC */ 1297 1302 } 1303 1304 /* Notify listeners: */ 1305 emit sigExtraDataChange(strMachineID, strKey, strValue); 1298 1306 } 1299 1307 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51929 r51930 47 47 48 48 signals: 49 50 /** Notifies about extra-data change. */ 51 void sigExtraDataChange(QString strID, QString strKey, QString strValue); 49 52 50 53 /** Notifies about GUI language change. */
Note:
See TracChangeset
for help on using the changeset viewer.