Skip to content

Commit

Permalink
Resize FolderWizard when run after account wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed May 5, 2022
1 parent b57c4b0 commit 5046356
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/owncloudgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ void ownCloudGui::runNewAccountWizard()
Q_ASSERT(localFolder.isEmpty());

auto *folderWizard = new FolderWizard(accountStatePtr->account(), ocApp()->gui()->settingsDialog());
folderWizard->resize(ocApp()->gui()->settingsDialog()->sizeHintForChild());
folderWizard->setAttribute(Qt::WA_DeleteOnClose);

// adapted from AccountSettings::slotFolderWizardAccepted()
Expand Down Expand Up @@ -1077,6 +1078,7 @@ void ownCloudGui::runNewAccountWizard()
});

folderWizard->open();
ocApp()->gui()->raiseDialog(folderWizard);

break;
}
Expand Down

0 comments on commit 5046356

Please sign in to comment.