Changeset 57964 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 30, 2015 12:28:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r57953 r57964 28 28 # include "UISelectorWindow.h" 29 29 # include "UIModalWindowManager.h" 30 # ifdef VBOX_WITH_HARDENING31 # include "QIMessageBox.h"32 # endif /* VBOX_WITH_HARDENING */33 30 # ifdef Q_WS_MAC 34 31 # include "VBoxUtils.h" … … 700 697 } 701 698 702 strText += "</html>";703 704 705 699 # ifdef Q_WS_X11 706 700 /* We have to to make sure that we display the error-message … … 709 703 # endif /* Q_WS_X11 */ 710 704 711 /* 712 * Create the message box and show it. 713 */ 714 QString strTitle = QApplication::tr("VirtualBox - Error In %1").arg(pszWhere); 715 QIMessageBox msgBox(strTitle, strText, AlertIconType_Critical, AlertButton_Ok | AlertButtonOption_Default); 705 /* Update strText with strDetails: */ 716 706 if (!strDetails.isEmpty()) 717 msgBox.setDetailsText(strDetails); 718 719 msgBox.exec(); 707 strText += QString("<br><br>%1").arg(strDetails); 708 709 /* Close the <html> scope: */ 710 strText += "</html>"; 711 712 /* Create and show the error message-box: */ 713 QMessageBox::critical(0, QApplication::tr("VirtualBox - Error In %1").arg(pszWhere), strText); 720 714 721 715 qFatal("%s", strText.toUtf8().constData());
Note:
See TracChangeset
for help on using the changeset viewer.