mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fix link window appearing on wrong monitor
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
// ----------------------------------------------------------------------------- : ExportCardSelectionChoice
|
// ----------------------------------------------------------------------------- : ExportCardSelectionChoice
|
||||||
|
|
||||||
CardLinkWindow::CardLinkWindow(Window* parent, const SetP& set, const CardP& selected_card, bool sizer)
|
CardLinkWindow::CardLinkWindow(Window* parent, const SetP& set, const CardP& selected_card, bool sizer)
|
||||||
: wxDialog(parent, wxID_ANY, _TITLE_("link cards"), wxPoint(400,-1), wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
|
: wxDialog(parent, wxID_ANY, _TITLE_("link cards"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
|
||||||
, set(set), parent(parent), selected_card(selected_card)
|
, set(set), parent(parent), selected_card(selected_card)
|
||||||
{
|
{
|
||||||
// init controls
|
// init controls
|
||||||
|
|||||||
@@ -534,6 +534,7 @@ bool CardListBase::canLink() const {
|
|||||||
}
|
}
|
||||||
bool CardListBase::doLink() {
|
bool CardListBase::doLink() {
|
||||||
CardLinkWindow wnd(this, set, getCard());
|
CardLinkWindow wnd(this, set, getCard());
|
||||||
|
wnd.CentreOnParent();
|
||||||
if (wnd.ShowModal() == wxID_OK) {
|
if (wnd.ShowModal() == wxID_OK) {
|
||||||
// The actual linking is done in this window's onOk function
|
// The actual linking is done in this window's onOk function
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user