VirtualBox

Changeset 5273 in vbox for trunk


Ignore:
Timestamp:
Oct 12, 2007 6:22:25 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25267
Message:

FE/Qt: Made the VM runtime warning/error message box suppressable.

File:
1 edited

Legend:

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

    r5094 r5273  
    17321732    //  - add common buttons like Retry/Save/PowerOff/whatever
    17331733
     1734    QCString autoConfimId = "showRuntimeError.";
     1735
    17341736    CConsole console = aConsole;
    17351737    CEnums::MachineState state = console.GetState();
     
    17451747        type = Critical;
    17461748        severity = tr ("<nobr>Fatal Error</nobr>", "runtime error info");
     1749        autoConfimId += "fatal.";
    17471750    }
    17481751    else if (state == CEnums::Paused)
     
    17501753        type = Error;
    17511754        severity = tr ("<nobr>Non-Fatal Error</nobr>", "runtime error info");
     1755        autoConfimId += "error.";
    17521756    }
    17531757    else
     
    17551759        type = Warning;
    17561760        severity = tr ("<nobr>Warning</nobr>", "runtime error info");
    1757     }
     1761        autoConfimId += "warning.";
     1762    }
     1763
     1764    autoConfimId += errorID.utf8();
    17581765
    17591766    QString formatted;
     
    17891796                "use the clipboard to copy the following error message for "
    17901797                "further examination:</p>"),
    1791             formatted);
     1798            formatted, autoConfimId.data());
    17921799
    17931800        /* always power down after a fatal error */
     
    18011808                "the described error and resume the virtual machine "
    18021809                "execution.</p>"),
    1803             formatted);
     1810            formatted, autoConfimId.data());
    18041811    }
    18051812    else
     
    18111818                "an appropriate action to make sure the described error will "
    18121819                "not happen.</p>"),
    1813             formatted);
    1814     }
    1815 
    1816     NOREF(rc);
     1820            formatted, autoConfimId.data());
     1821    }
     1822
     1823    NOREF (rc);
    18171824}
    18181825
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