Changeset 88586 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 19, 2021 4:40:07 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r88585 r88586 403 403 void UIChooserAbstractModel::deinit() 404 404 { 405 // WORKAROUND:406 // Currently we are not saving group descriptors407 // (which reflecting group toggle-state) on-the-fly,408 // so for now we are additionally save group definitions409 // when exiting application:410 saveGroupDefinitions();411 412 405 /* Make sure all saving steps complete: */ 413 406 makeSureGroupSettingsSaveIsFinished(); … … 540 533 void UIChooserAbstractModel::saveGroups() 541 534 { 542 emit sigS tartGroupSaving();535 emit sigSaveSettings(); 543 536 } 544 537 … … 987 980 } 988 981 989 void UIChooserAbstractModel::sltS tartGroupSaving()982 void UIChooserAbstractModel::sltSaveSettings() 990 983 { 991 984 saveGroupSettings(); … … 1000 993 void UIChooserAbstractModel::prepareConnections() 1001 994 { 1002 /* Cloud VM registration connections: */995 /* UICommon connections: */ 1003 996 connect(&uiCommon(), &UICommon::sigCloudMachineUnregistered, 1004 997 this, &UIChooserAbstractModel::sltCloudMachineUnregistered); … … 1032 1025 this, &UIChooserAbstractModel::sltHandleCloudProviderUninstall); 1033 1026 1034 /* Groupsaving connections: */1035 connect(this, &UIChooserAbstractModel::sigS tartGroupSaving,1036 this, &UIChooserAbstractModel::sltS tartGroupSaving,1027 /* Settings saving connections: */ 1028 connect(this, &UIChooserAbstractModel::sigSaveSettings, 1029 this, &UIChooserAbstractModel::sltSaveSettings, 1037 1030 Qt::QueuedConnection); 1038 1031 … … 1076 1069 this, &UIChooserAbstractModel::sltHandleCloudProviderUninstall); 1077 1070 1078 /* Groupsaving connections: */1079 disconnect(this, &UIChooserAbstractModel::sigS tartGroupSaving,1080 this, &UIChooserAbstractModel::sltS tartGroupSaving);1071 /* Settings saving connections: */ 1072 disconnect(this, &UIChooserAbstractModel::sigSaveSettings, 1073 this, &UIChooserAbstractModel::sltSaveSettings); 1081 1074 1082 1075 /* Extra-data connections: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r86802 r88586 57 57 /** @name Group saving stuff. 58 58 * @{ */ 59 /** Commands to start group saving. */60 void sigS tartGroupSaving();59 /** Issues request to save settings. */ 60 void sigSaveSettings(); 61 61 /** Notifies listeners about group saving state changed. */ 62 62 void sigGroupSavingStateChanged(); … … 236 236 /** @name Group saving stuff. 237 237 * @{ */ 238 /** Handles request to s tart group saving. */239 void sltS tartGroupSaving();238 /** Handles request to save settings. */ 239 void sltSaveSettings(); 240 240 /** @} */ 241 241 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r86767 r88586 1032 1032 /* Repaint finally: */ 1033 1033 update(); 1034 /* Save changes: */ 1035 model()->saveGroups(); 1034 1036 1035 1037 /* Toggle finished: */
Note:
See TracChangeset
for help on using the changeset viewer.