mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI+PaintBrush: Fix to GFilePicker and PaintBrush enhancements.
GFilePicker - Fixed GFilePicker to use new ref-counted construct method to stop crashing on open dialog. - PaintBrush is still crashing on open dialog due to an unrelated issue. PaintBrush - Created 16x16 icon for PaintBrush - Moved Open option into App menu. - Changed help menu to make use of the standardized About dialog.
This commit is contained in:
committed by
Andreas Kling
parent
3fb88cb76d
commit
08a1fb8f1a
@@ -15,10 +15,10 @@
|
||||
|
||||
Optional<String> GFilePicker::get_open_filepath()
|
||||
{
|
||||
GFilePicker picker(Mode::Open);
|
||||
auto picker = GFilePicker::construct(Mode::Open);
|
||||
|
||||
if (picker.exec() == GDialog::ExecOK) {
|
||||
String file_path = picker.selected_file().string();
|
||||
if (picker->exec() == GDialog::ExecOK) {
|
||||
String file_path = picker->selected_file().string();
|
||||
|
||||
if (file_path.is_null())
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user