Fix positioning issues with remote file browser
This commit is contained in:
parent
38eb689b69
commit
548251f538
|
@ -111,7 +111,7 @@ QDialog *browseRemoteFilesDialog(Data::SyncthingConnection &connection, const Da
|
|||
&QAction::triggered, model, [model, action, index]() { model->triggerAction(action, index); });
|
||||
++actionIndex;
|
||||
}
|
||||
menu.exec(pos);
|
||||
menu.exec(view->viewport()->mapToGlobal(pos));
|
||||
});
|
||||
|
||||
// setup layout
|
||||
|
|
|
@ -713,7 +713,7 @@ void TrayWidget::browseRemoteFiles(const Data::SyncthingDir &dir)
|
|||
{
|
||||
auto *const dlg = browseRemoteFilesDialog(m_connection, dir, this);
|
||||
dlg->resize(600, 500);
|
||||
centerWidget(this);
|
||||
centerWidget(dlg);
|
||||
dlg->show();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue