Changeset 100902 in vbox
- Timestamp:
- Aug 17, 2023 6:40:28 PM (16 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp
r100899 r100902 175 175 } 176 176 177 void UISettingsDialog::sltMarkLoaded() 178 { 179 /* Delete serializer if exists: */ 180 if (serializeProcess()) 181 { 182 delete m_pSerializeProcess; 183 m_pSerializeProcess = 0; 184 } 185 186 /* Mark serialization finished: */ 187 m_fSerializationIsInProgress = false; 188 } 189 190 void UISettingsDialog::sltMarkSaved() 177 void UISettingsDialog::sltHandleSerializationFinished() 191 178 { 192 179 /* Delete serializer if exists: */ … … 384 371 connect(m_pSerializeProcess, &UISettingsSerializer::sigNotifyAboutProcessStarted, this, &UISettingsDialog::sltHandleProcessStarted); 385 372 connect(m_pSerializeProcess, &UISettingsSerializer::sigNotifyAboutProcessProgressChanged, this, &UISettingsDialog::sltHandleProcessProgressChange); 386 connect(m_pSerializeProcess, &UISettingsSerializer::sigNotifyAboutProcessFinished, this, &UISettingsDialog::slt MarkLoaded);373 connect(m_pSerializeProcess, &UISettingsSerializer::sigNotifyAboutProcessFinished, this, &UISettingsDialog::sltHandleSerializationFinished); 387 374 388 375 /* Raise current page priority: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.h
r100900 r100902 98 98 virtual void sltCategoryChanged(int cId); 99 99 100 /** Marks dialog loaded. */ 101 virtual void sltMarkLoaded(); 102 /** Marks dialog saved. */ 103 virtual void sltMarkSaved(); 100 /** Handle serializartion finished. */ 101 virtual void sltHandleSerializationFinished(); 104 102 105 103 /** Handles process start. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r100896 r100902 169 169 msgCenter().cannotSetSystemProperties(comNewProperties, this); 170 170 171 /* Mark as saved: */172 slt MarkSaved();171 /* Handle serializartion finished: */ 172 sltHandleSerializationFinished(); 173 173 } 174 174 … … 484 484 msgCenter().cannotSaveMachineSettings(m_machine, this); 485 485 486 /* Mark as saved: */487 slt MarkSaved();486 /* Handle serializartion finished: */ 487 sltHandleSerializationFinished(); 488 488 } 489 489 … … 556 556 } 557 557 558 void UISettingsDialogMachine::sltMarkLoaded() 559 { 560 /* Call for base-class: */ 561 UISettingsDialog::sltMarkLoaded(); 562 563 /* Unlock the session if exists: */ 564 if (!m_session.isNull()) 565 { 566 m_session.UnlockMachine(); 567 m_session = CSession(); 568 m_machine = CMachine(); 569 m_console = CConsole(); 570 } 571 } 572 573 void UISettingsDialogMachine::sltMarkSaved() 574 { 575 /* Call for base-class: */ 576 UISettingsDialog::sltMarkSaved(); 558 void UISettingsDialogMachine::sltHandleSerializationFinished() 559 { 560 /* Call to base-class: */ 561 UISettingsDialog::sltHandleSerializationFinished(); 577 562 578 563 /* Unlock the session if exists: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h
r100900 r100902 138 138 virtual void sltCategoryChanged(int cId) RT_OVERRIDE; 139 139 140 /** Marks dialog loaded. */ 141 virtual void sltMarkLoaded() RT_OVERRIDE; 142 /** Marks dialog saved. */ 143 virtual void sltMarkSaved() RT_OVERRIDE; 140 /** Handle serializartion finished. */ 141 virtual void sltHandleSerializationFinished() RT_OVERRIDE; 144 142 145 143 private slots:
Note:
See TracChangeset
for help on using the changeset viewer.