Changeset 68327 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 7, 2017 6:07:04 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117448
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.cpp
r68326 r68327 670 670 { 671 671 /* Always valid for now: */ 672 const bool fError = false;672 const bool fError = m_newData.m_options.m_uLogicalSize < m_oldData.m_options.m_uLogicalSize; 673 673 m_pErrorPaneSize->setVisible(fError); 674 674 if (fError) … … 680 680 } 681 681 682 void UIMediumDetailsWidget::retranslateValidation(QWidget * /* pWidget= 0 */)682 void UIMediumDetailsWidget::retranslateValidation(QWidget *pWidget /* = 0 */) 683 683 { 684 684 /* Translate 'Interface' tab content: */ … … 692 692 // m_pErrorPaneDescription->setToolTip(tr("Cannot change medium description from <b>%1</b> to <b>%2</b>.") 693 693 // .arg(m_oldData.m_options.m_strDescription).arg(m_newData.m_options.m_strDescription)); 694 //if (!pWidget || pWidget == m_pErrorPaneSize)695 // m_pErrorPaneSize->setToolTip(tr("Cannot change medium size from <b>%1</b> to <b>%2</b>.")696 //.arg(m_oldData.m_options.m_uLogicalSize).arg(m_newData.m_options.m_uLogicalSize));694 if (!pWidget || pWidget == m_pErrorPaneSize) 695 m_pErrorPaneSize->setToolTip(tr("Cannot change medium size from <b>%1</b> to <b>%2</b> as storage shrinking is currently forbidden.") 696 .arg(m_oldData.m_options.m_uLogicalSize).arg(m_newData.m_options.m_uLogicalSize)); 697 697 } 698 698
Note:
See TracChangeset
for help on using the changeset viewer.