mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Put XcaWarningBox on the stack not on the heap
This commit is contained in:
parent
8271a1a3e8
commit
36e02374ff
@ -100,6 +100,10 @@ if(SPHINX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT SPHINX OR NOT QTCOLLGEN)
|
||||
add_custom_target(sphinx-qthelp)
|
||||
endif()
|
||||
|
||||
if (NOT WIN32)
|
||||
add_custom_command(
|
||||
OUTPUT "${D}/xca.1.gz"
|
||||
|
||||
@ -31,11 +31,9 @@ void xcaWarningBox::addButton(QMessageBox::StandardButton button,
|
||||
int xcaWarningGui::showBox(const QString &txt, QMessageBox::Icon icn,
|
||||
QMessageBox::StandardButtons b)
|
||||
{
|
||||
xcaWarningBox *w = new xcaWarningBox(NULL, txt, icn);
|
||||
w->setStandardButtons(b);
|
||||
int n = w->exec();
|
||||
delete w;
|
||||
return n;
|
||||
xcaWarningBox w(NULL, txt, icn);
|
||||
w.setStandardButtons(b);
|
||||
return w.exec();
|
||||
}
|
||||
|
||||
void xcaWarningGui::information(const QString &msg)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user