mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
Spreadsheet: Properly pass parent window to Workbook
Change the parent of the WizardDialog to that of the Spreadsheet window. Previously the WizardDialog was using the open file dialog as the parent resulting in the csv import dialog
This commit is contained in:
parent
876424923a
commit
f5ff011c1b
5 changed files with 10 additions and 7 deletions
|
@ -26,7 +26,7 @@
|
|||
namespace Spreadsheet {
|
||||
|
||||
SpreadsheetWidget::SpreadsheetWidget(NonnullRefPtrVector<Sheet>&& sheets, bool should_add_sheet_if_empty)
|
||||
: m_workbook(make<Workbook>(move(sheets)))
|
||||
: m_workbook(make<Workbook>(move(sheets), window()))
|
||||
{
|
||||
set_fill_with_background_color(true);
|
||||
set_layout<GUI::VerticalBoxLayout>().set_margins(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue