VirtualBox

Changeset 23609 in vbox


Ignore:
Timestamp:
Oct 7, 2009 8:51:55 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53283
Message:

FE/Qt: nice names for host drives in the Settings window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxMedium.cpp

    r23585 r23609  
    7979    mIsHostDrive = mMedium.isNull() ? false : mMedium.GetHostDrive();
    8080
    81     mName = mMedium.isNull() ? VBoxGlobal::tr ("Empty", "medium") :
    82             !mIsHostDrive ? mMedium.GetName() :
    83             VBoxGlobal::tr ("Host Drive '%1'", "medium").arg (QDir::toNativeSeparators (mMedium.GetLocation()));
     81    if (mMedium.isNull())
     82        mName = VBoxGlobal::tr ("Empty", "medium");
     83    else if (!mIsHostDrive)
     84        mName = mMedium.GetName();
     85    else if (mMedium.GetDescription().isNull())
     86        mName = VBoxGlobal::tr ("Host Drive '%1'", "medium").arg (QDir::toNativeSeparators (mMedium.GetLocation()));
     87    else
     88        mName = VBoxGlobal::tr ("Host Drive %1 (%2)", "medium").arg (mMedium.GetDescription(), mMedium.GetName());
    8489
    8590    mLocation = mMedium.isNull() || mIsHostDrive ? QString ("--") :
Note: See TracChangeset for help on using the changeset viewer.

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