Skip to content

Commit

Permalink
Merge pull request #7789 from nextcloud/bugfix/show-resolve-conflicts…
Browse files Browse the repository at this point in the history
…-dialog

fix "Resolve conflicts" dialog not showing up
  • Loading branch information
mgallien authored Jan 24, 2025
2 parents 0fb6dd4 + e921e96 commit af2027d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/systray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,13 @@ void Systray::createResolveConflictsDialog(const OCC::ActivityList &allConflicts

// This call dialog gets deallocated on close conditions
// by a call from the QML side to the destroyDialog slot
auto dialog = QScopedPointer(conflictsDialog->createWithInitialProperties(initialProperties));
auto dialog = std::unique_ptr<QObject>(conflictsDialog->createWithInitialProperties(initialProperties));
if (!dialog) {
return;
}
dialog->setParent(QGuiApplication::instance());

auto dialogWindow = qobject_cast<QQuickWindow*>(dialog.data());
auto dialogWindow = qobject_cast<QQuickWindow*>(dialog.release());
if (!dialogWindow) {
return;
}
Expand Down

0 comments on commit af2027d

Please sign in to comment.