Changeset 137 for smplayer/vendor/current/src/preferences.cpp
- Timestamp:
- Dec 3, 2012, 5:29:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/preferences.cpp
r133 r137 39 39 #endif 40 40 41 #define CURRENT_CONFIG_VERSION 141 #define CURRENT_CONFIG_VERSION 2 42 42 43 43 using namespace Global; … … 104 104 105 105 use_soft_video_eq = false; 106 use_slices = true;106 use_slices = false; 107 107 autoq = 6; 108 108 add_blackborders_on_fullscreen = false; … … 302 302 show_tag_in_window_title = true; 303 303 304 time_to_kill_mplayer = 5000; 305 304 306 305 307 /* ********* … … 486 488 487 489 filters->init(); 490 491 492 /* ********* 493 SMPlayer info 494 ********* */ 495 496 #ifdef FONTCACHE_DIALOG 497 smplayer_version = ""; 498 #endif 488 499 } 489 500 … … 721 732 722 733 set->setValue("show_tag_in_window_title", show_tag_in_window_title); 734 735 set->setValue("time_to_kill_mplayer", time_to_kill_mplayer); 723 736 724 737 set->endGroup(); // advanced … … 927 940 928 941 942 /* ********* 943 SMPlayer info 944 ********* */ 945 946 #ifdef FONTCACHE_DIALOG 947 set->beginGroup("smplayer"); 948 set->setValue("version", smplayer_version); 949 set->endGroup(); 950 #endif 951 929 952 set->sync(); 930 953 } … … 1168 1191 1169 1192 show_tag_in_window_title = set->value("show_tag_in_window_title", show_tag_in_window_title).toBool(); 1193 1194 time_to_kill_mplayer = set->value("time_to_kill_mplayer", time_to_kill_mplayer).toInt(); 1170 1195 1171 1196 set->endGroup(); // advanced … … 1376 1401 filters->load(set); 1377 1402 1403 1404 /* ********* 1405 SMPlayer info 1406 ********* */ 1407 1408 #ifdef FONTCACHE_DIALOG 1409 set->beginGroup("smplayer"); 1410 smplayer_version = set->value("version", smplayer_version).toString(); 1411 set->endGroup(); 1412 #endif 1413 1378 1414 // Fix some values if config is old 1379 1415 if (config_version < CURRENT_CONFIG_VERSION) { 1380 1416 qDebug("Preferences::load: config version is old, updating it"); 1381 1417 config_version = CURRENT_CONFIG_VERSION; 1382 /* 1383 iconset = "Nuvola"; 1384 yt_user_agent = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"; 1385 */ 1418 use_slices = false; 1386 1419 } 1387 1420 }
Note:
See TracChangeset
for help on using the changeset viewer.