From c5b8c749da0b3d7fd9e233e3294d8a6836b98ee6 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 1 Jan 2018 17:18:28 +0100 Subject: [PATCH] minor fix: use right parent to show the symbol or footprint viewer in dialog --- eeschema/dialogs/dialog_edit_component_in_schematic.cpp | 2 +- eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp | 4 ++-- eeschema/getpart.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp index 08b883b35b..d6a3065b0d 100644 --- a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp +++ b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp @@ -594,7 +594,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::showButtonHandler( wxCommandEvent& even // pick a footprint using the footprint picker. wxString fpid; - KIWAY_PLAYER* frame = Kiway().Player( FRAME_PCB_MODULE_VIEWER_MODAL, true, GetParent() ); + KIWAY_PLAYER* frame = Kiway().Player( FRAME_PCB_MODULE_VIEWER_MODAL, true, this ); if( frame->ShowModal( &fpid, this ) ) { diff --git a/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp b/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp index 23341a5bdf..27cc749c80 100644 --- a/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp +++ b/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp @@ -3,7 +3,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2011-2013 SoftPLC Corporation, Dick Hollenbeck - * Copyright (C) 2007-2017 KiCad Developers, see change_log.txt for contributors. + * Copyright (C) 2007-2017 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -509,7 +509,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::showButtonHandler( wxCommandEvent& even // pick a footprint using the footprint picker. wxString fpid; - KIWAY_PLAYER* frame = Kiway().Player( FRAME_PCB_MODULE_VIEWER_MODAL, true ); + KIWAY_PLAYER* frame = Kiway().Player( FRAME_PCB_MODULE_VIEWER_MODAL, true, this ); if( frame->ShowModal( &fpid, this ) ) { diff --git a/eeschema/getpart.cpp b/eeschema/getpart.cpp index 260f2579fd..fc490109ac 100644 --- a/eeschema/getpart.cpp +++ b/eeschema/getpart.cpp @@ -82,7 +82,7 @@ SCH_BASE_FRAME::COMPONENT_SELECTION SCH_BASE_FRAME::SelectComponentFromLibBrowse wxString symbol = sel.LibId.Format(); - if( viewlibFrame->ShowModal( &symbol, this ) ) + if( viewlibFrame->ShowModal( &symbol, aParent ) ) { LIB_ID id;