1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

GMessageBox: Add icons to message boxes with 3 standard ones to choose from.

This commit is contained in:
Andreas Kling 2019-05-08 20:13:39 +02:00
parent b5b44a29bb
commit de98b2770b
7 changed files with 57 additions and 10 deletions

View file

@ -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");