From 2d97353365d7aa7b326681e0c348165e4030ff2c Mon Sep 17 00:00:00 2001 From: vsonnier Date: Fri, 27 Jan 2017 22:34:38 +0100 Subject: [PATCH] Add a proper icon to the SDR Devices dialog --- src/forms/SDRDevices/SDRDevices.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/forms/SDRDevices/SDRDevices.cpp b/src/forms/SDRDevices/SDRDevices.cpp index a0ff00a..e0bd51e 100644 --- a/src/forms/SDRDevices/SDRDevices.cpp +++ b/src/forms/SDRDevices/SDRDevices.cpp @@ -8,6 +8,10 @@ #include "CubicSDR.h" +#ifdef __linux__ +#include "CubicSDR.xpm" +#endif + SDRDevicesDialog::SDRDevicesDialog( wxWindow* parent ): devFrame( parent, wxID_ANY, wxT(CUBICSDR_INSTALL_NAME " :: SDR Devices")) { refresh = true; failed = false; @@ -20,6 +24,13 @@ SDRDevicesDialog::SDRDevicesDialog( wxWindow* parent ): devFrame( parent, wxID_A removeId = nullptr; devAddDialog = nullptr; dev = nullptr; + +#ifdef __linux__ + SetIcon(wxICON(cubicsdr)); +#elif _WIN32 + SetIcon(wxICON(frame_icon)); +#endif + } void SDRDevicesDialog::OnClose( wxCloseEvent& /* event */) {