mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
GMessageBox: Add icons to message boxes with 3 standard ones to choose from.
This commit is contained in:
parent
b5b44a29bb
commit
de98b2770b
7 changed files with 57 additions and 10 deletions
|
@ -307,8 +307,7 @@ void VBForm::write_to_file(const String& path)
|
|||
{
|
||||
CFile file(path);
|
||||
if (!file.open(CIODevice::WriteOnly)) {
|
||||
GMessageBox box(String::format("Could not open '%s' for writing", path.characters()), "Error", window());
|
||||
box.exec();
|
||||
GMessageBox::show(String::format("Could not open '%s' for writing", path.characters()), "Error", GMessageBox::Type::Error, window());
|
||||
return;
|
||||
}
|
||||
file.printf("[Form]\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue