VirtualBox

Changeset 18846 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 8, 2009 3:55:04 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OVF: only truncate if this is a multi line text

File:
1 edited

Legend:

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

    r18591 r18846  
    213213                                 * one line */
    214214                                QString tmp (mConfigValue);
    215                                 tmp.replace (tmp.indexOf ('\n'), tmp.length(), "...");
     215                                int i = tmp.indexOf ('\n');
     216                                if (i > -1)
     217                                    tmp.replace (i, tmp.length(), "...");
    216218                                v = tmp; break;
    217219                            }
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