Fix positioning issues with remote file browser

This commit is contained in:
Martchus 2024-04-06 19:38:54 +02:00
parent 38eb689b69
commit 548251f538
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ QDialog *browseRemoteFilesDialog(Data::SyncthingConnection &connection, const Da
&QAction::triggered, model, [model, action, index]() { model->triggerAction(action, index); }); &QAction::triggered, model, [model, action, index]() { model->triggerAction(action, index); });
++actionIndex; ++actionIndex;
} }
menu.exec(pos); menu.exec(view->viewport()->mapToGlobal(pos));
}); });
// setup layout // setup layout

View File

@ -713,7 +713,7 @@ void TrayWidget::browseRemoteFiles(const Data::SyncthingDir &dir)
{ {
auto *const dlg = browseRemoteFilesDialog(m_connection, dir, this); auto *const dlg = browseRemoteFilesDialog(m_connection, dir, this);
dlg->resize(600, 500); dlg->resize(600, 500);
centerWidget(this); centerWidget(dlg);
dlg->show(); dlg->show();
} }