From 016089687a0605beb6184620c52b523939bd1745 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 25 Sep 2014 16:08:55 +0000 Subject: [PATCH] Recover saved colors for Band Map and Messages windows. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@4366 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- devsetup.cpp | 4 ++-- mainwindow.cpp | 2 +- map65.pro | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/devsetup.cpp b/devsetup.cpp index b21de7e07..743231275 100644 --- a/devsetup.cpp +++ b/devsetup.cpp @@ -109,8 +109,8 @@ void DevSetup::initDlg() ui.mult570SpinBox->setValue(m_mult570); ui.mult570TxSpinBox->setValue(m_mult570Tx); ui.cal570SpinBox->setValue(m_cal570); -// sscanf(m_colors.toLatin1(),"%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", -// &r,&g,&b,&r0,&g0,&b0,&r1,&g1,&b1,&r2,&g2,&b2,&r3,&g3,&b3); + sscanf(m_colors.toLatin1(),"%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", + &r,&g,&b,&r0,&g0,&b0,&r1,&g1,&b1,&r2,&g2,&b2,&r3,&g3,&b3); updateColorLabels(); ui.sbBackgroundRed->setValue(r); ui.sbBackgroundGreen->setValue(g); diff --git a/mainwindow.cpp b/mainwindow.cpp index 9edd92fcb..f99c47892 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//-------------------------------------------------------------- MainWindow +//--------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" diff --git a/map65.pro b/map65.pro index 249a1766c..3a0a51317 100644 --- a/map65.pro +++ b/map65.pro @@ -10,7 +10,7 @@ CONFIG += thread #CONFIG += console TARGET = map65 -VERSION = 2.3.0 +VERSION = 2.5.0 TEMPLATE = app DEFINES = QT5 DESTDIR = ../map65_install