VirtualBox

Changeset 83900 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 21, 2020 4:01:57 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137432
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Sync definition rules for last chosen item and group order saved to extra-data.

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

    r83882 r83900  
    363363    return    UIThreadGroupDefinitionSave::instance()
    364364           || UIThreadGroupOrderSave::instance();
     365}
     366
     367/* static */
     368QString UIChooserAbstractModel::toOldStyleUuid(const QUuid &uId)
     369{
     370    return uId.toString().remove(QRegExp("[{}]"));
    365371}
    366372
     
    991997}
    992998
    993 /* static */
    994 QString UIChooserAbstractModel::toOldStyleUuid(const QUuid &uId)
    995 {
    996     return uId.toString().remove(QRegExp("[{}]"));
    997 }
    998 
    999999
    10001000/*********************************************************************************************************************************
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r83705 r83900  
    107107        /** Returns whether group saving is in progress. */
    108108        bool isGroupSavingInProgress() const;
     109
     110        /** Returns QString representation for passed @a uId, wiping out {} symbols.
     111          * @note  Required for backward compatibility after QString=>QUuid change. */
     112        static QString toOldStyleUuid(const QUuid &uId);
    109113    /** @} */
    110114
     
    232236        /** Makes sure group orders saving is finished. */
    233237        void makeSureGroupOrdersSaveIsFinished();
    234 
    235         /** Returns QString representation for passed @a uId, wiping out {} symbols.
    236           * @note  Required for backward compatibility after QString=>QUuid change. */
    237         static QString toOldStyleUuid(const QUuid &uId);
    238238    /** @} */
    239239
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.cpp

    r83884 r83900  
    138138QString UIChooserNodeMachine::definition() const
    139139{
    140     return QString("m=%1").arg(name());
     140    return QString("m=%1").arg(UIChooserAbstractModel::toOldStyleUuid(cache()->id()));
    141141}
    142142
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette