VirtualBox

Ignore:
Timestamp:
Mar 25, 2009 8:08:39 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: actually it can happen if item is NULL here

File:
1 edited

Legend:

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

    r18238 r18240  
    441441    AssertMsg (item, ("Current item should be selected!\n"));
    442442
    443     /* Edit current item data */
    444     VBoxGLSettingsNetworkDetails details (this);
    445     details.getFromItem (item);
    446     if (details.exec() == QDialog::Accepted)
    447     {
    448         details.putBackToItem();
    449         item->setChanged (true);
    450         item->updateInfo();
    451     }
    452 
    453     updateCurrentItem();
    454     mValidator->revalidate();
     443    if (item)
     444    {
     445        /* Edit current item data */
     446        VBoxGLSettingsNetworkDetails details (this);
     447        details.getFromItem (item);
     448        if (details.exec() == QDialog::Accepted)
     449        {
     450            details.putBackToItem();
     451            item->setChanged (true);
     452            item->updateInfo();
     453        }
     454
     455        updateCurrentItem();
     456        mValidator->revalidate();
     457    }
    455458}
    456459
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