From 41958e91d52457e264e7e62e22beb605432a76a2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 29 Nov 2012 11:43:52 +0000 Subject: - weather is not updated in the virtual mode; - unused option removed git-svn-id: http://svn.miranda-ng.org/main/trunk@2557 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather_addstn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Weather/src/weather_addstn.cpp') diff --git a/plugins/Weather/src/weather_addstn.cpp b/plugins/Weather/src/weather_addstn.cpp index 9a3f1fd19f..4cc2a34a90 100644 --- a/plugins/Weather/src/weather_addstn.cpp +++ b/plugins/Weather/src/weather_addstn.cpp @@ -44,7 +44,7 @@ INT_PTR WeatherAddToList(WPARAM wParam, LPARAM lParam) if ( IsMyContact(hContact)) { DBVARIANT dbv; // check ID to see if the contact already exist in the database - if ( !DBGetContactSettingTString(hContact, WEATHERPROTONAME, "ID", &dbv)) { + if ( !db_get_ts(hContact, WEATHERPROTONAME, "ID", &dbv)) { if ( !_tcsicmp(psr->email, dbv.ptszVal)) { // remove the flag for not on list and hidden, thus make the contact visible // and add them on the list @@ -108,7 +108,7 @@ INT_PTR WeatherAddToList(WPARAM wParam, LPARAM lParam) GetStationID(hContact, opt.Default, SIZEOF(opt.Default)); opt.DefStn = hContact; - if ( !DBGetContactSettingTString(hContact, WEATHERPROTONAME, "Nick", &dbv)) { + if ( !db_get_ts(hContact, WEATHERPROTONAME, "Nick", &dbv)) { // notification message box wsprintf(str, TranslateT("%s is now the default weather station"), dbv.ptszVal); db_free(&dbv); -- cgit v1.2.3