VirtualBox

儲存庫 vbox 的更動 67546


忽略:
時間撮記:
2017-6-21 下午03:39:01 (7 年 以前)
作者:
vboxsync
訊息:

FE/Qt: bugref:8901: Selector UI: Tools pane: Snapshot pane: Rebuild whole the tree on translate event, the easiest way to propagate translation.

位置:
trunk/src/VBox/Frontends/VirtualBox/src/selector
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.cpp

    r67543 r67546  
    556556                               << tr("Taken", "snapshot");
    557557    m_pSnapshotTree->setHeaderLabels(fields);
     558
     559    /* Refresh whole the tree: */
     560    refreshAll();
    558561}
    559562
     
    833836    {
    834837        LogRel(("GUI: Snapshot tree update failed! Rebuilding from scratch...\n"));
    835         return refreshAll();
     838        refreshAll();
    836839    }
    837840}
     
    15031506            QString strFinalDescription;
    15041507
    1505             /* Should we take snapshot manually? */
     1508            /* In manual mode we should show take snapshot dialog: */
    15061509            if (!fAutomatically)
    15071510            {
     
    15891592            break;
    15901593
    1591         /* Ask if user really wants to remove the selected snapshot: */
     1594        /* In manual mode we should ask if user really wants to remove the selected snapshot: */
    15921595        if (!fAutomatically && !msgCenter().confirmSnapshotRemoval(comSnapshot.GetName()))
    15931596            break;
     
    16481651}
    16491652
    1650 bool UISnapshotPane::restoreSnapshot(bool fSuppressNonCriticalWarnings /* = false */)
     1653bool UISnapshotPane::restoreSnapshot(bool fAutomatically /* = false */)
    16511654{
    16521655    /* Simulate try-catch block: */
     
    16661669            break;
    16671670
    1668         /* If non-critical warnings are not hidden or current state is changed: */
    1669         if (!fSuppressNonCriticalWarnings && m_comMachine.GetCurrentStateModified())
     1671        /* In manual mode we should check whether current state is changed: */
     1672        if (!fAutomatically && m_comMachine.GetCurrentStateModified())
    16701673        {
    16711674            /* Ask if user really wants to restore the selected snapshot: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.h

    r67543 r67546  
    171171        bool deleteSnapshot(bool fAutomatically = false);
    172172        /** Proposes to restore the snapshot. */
    173         bool restoreSnapshot(bool fSuppressNonCriticalWarnings = false);
     173        bool restoreSnapshot(bool fAutomatically = false);
    174174        /** Proposes to clone the snapshot. */
    175175        void cloneSnapshot();
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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