mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 08:06:11 +00:00
GMessageBox: Add icons to message boxes with 3 standard ones to choose from.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user