Don't check for updates when application is run for the very first time (after install or update).

This commit is contained in:
LoRd_MuldeR 2011-09-19 18:52:02 +02:00
parent 41b9763ef8
commit a77ee5c397
4 changed files with 173 additions and 160 deletions

View File

@ -677,7 +677,7 @@ FunctionEnd
Function RunAppFunction Function RunAppFunction
!insertmacro GetExecutableName $R0 !insertmacro GetExecutableName $R0
!insertmacro UAC_AsUser_ExecShell "explore" "$INSTDIR" "" "" SW_SHOWNORMAL !insertmacro UAC_AsUser_ExecShell "explore" "$INSTDIR" "" "" SW_SHOWNORMAL
!insertmacro UAC_AsUser_ExecShell "open" "$INSTDIR\$R0" "" "$INSTDIR" SW_SHOWNORMAL !insertmacro UAC_AsUser_ExecShell "open" "$INSTDIR\$R0" "--first-run" "$INSTDIR" SW_SHOWNORMAL
FunctionEnd FunctionEnd
Function ShowReadmeFunction Function ShowReadmeFunction

View File

@ -1342,9 +1342,9 @@
</message> </message>
<message> <message>
<location filename="../../gui/MainWindow.ui" line="3534"/> <location filename="../../gui/MainWindow.ui" line="3534"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="939"/> <location filename="../../src/Dialog_MainWindow.cpp" line="946"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="965"/> <location filename="../../src/Dialog_MainWindow.cpp" line="972"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="984"/> <location filename="../../src/Dialog_MainWindow.cpp" line="991"/>
<source>Check for Updates</source> <source>Check for Updates</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1385,13 +1385,13 @@
</message> </message>
<message> <message>
<location filename="../../gui/MainWindow.ui" line="3603"/> <location filename="../../gui/MainWindow.ui" line="3603"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1415"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1426"/>
<source>Disable Update Reminder</source> <source>Disable Update Reminder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../gui/MainWindow.ui" line="3611"/> <location filename="../../gui/MainWindow.ui" line="3611"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1441"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1452"/>
<source>Disable Sound Effects</source> <source>Disable Sound Effects</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1472,7 +1472,7 @@
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="493"/> <location filename="../../src/Dialog_MainWindow.cpp" line="493"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2958"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2969"/>
<source>Access Denied</source> <source>Access Denied</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1572,567 +1572,569 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="918"/> <location filename="../../src/Dialog_MainWindow.cpp" line="925"/>
<source>License Declined</source> <source>License Declined</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="918"/> <location filename="../../src/Dialog_MainWindow.cpp" line="925"/>
<source>You have declined the license. Consequently the application will exit now!</source> <source>You have declined the license. Consequently the application will exit now!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="918"/> <location filename="../../src/Dialog_MainWindow.cpp" line="925"/>
<source>Goodbye!</source> <source>Goodbye!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="939"/> <location filename="../../src/Dialog_MainWindow.cpp" line="946"/>
<source>LameXP - Expired</source> <source>LameXP - Expired</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="939"/> <location filename="../../src/Dialog_MainWindow.cpp" line="946"/>
<source>This demo (pre-release) version of LameXP has expired at %1.</source> <source>This demo (pre-release) version of LameXP has expired at %1.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="939"/> <location filename="../../src/Dialog_MainWindow.cpp" line="946"/>
<source>LameXP is free software and release versions won&apos;t expire.</source> <source>LameXP is free software and release versions won&apos;t expire.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="939"/> <location filename="../../src/Dialog_MainWindow.cpp" line="946"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="965"/> <location filename="../../src/Dialog_MainWindow.cpp" line="972"/>
<source>Exit Program</source> <source>Exit Program</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="952"/> <location filename="../../src/Dialog_MainWindow.cpp" line="959"/>
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source> <source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="953"/> <location filename="../../src/Dialog_MainWindow.cpp" line="960"/>
<source>Please refer to the %1 document for details and solutions!</source> <source>Please refer to the %1 document for details and solutions!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="954"/> <location filename="../../src/Dialog_MainWindow.cpp" line="961"/>
<source>Slow Startup</source> <source>Slow Startup</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="954"/> <location filename="../../src/Dialog_MainWindow.cpp" line="961"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1024"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1616"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1097"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2901"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1098"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1627"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2912"/>
<source>Discard</source> <source>Discard</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="954"/> <location filename="../../src/Dialog_MainWindow.cpp" line="961"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1024"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1031"/>
<source>Don&apos;t Show Again</source> <source>Don&apos;t Show Again</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="965"/> <location filename="../../src/Dialog_MainWindow.cpp" line="972"/>
<source>Urgent Update</source> <source>Urgent Update</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="965"/> <location filename="../../src/Dialog_MainWindow.cpp" line="972"/>
<source>Your version of LameXP is more than a year old. Time for an update!</source> <source>Your version of LameXP is more than a year old. Time for an update!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="984"/> <location filename="../../src/Dialog_MainWindow.cpp" line="991"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1417"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1428"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1427"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1438"/>
<source>Update Reminder</source> <source>Update Reminder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="984"/> <location filename="../../src/Dialog_MainWindow.cpp" line="991"/>
<source>Your last update check was more than 14 days ago. Check for updates now?</source> <source>Your last update check was more than 14 days ago. Check for updates now?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="984"/> <location filename="../../src/Dialog_MainWindow.cpp" line="991"/>
<source>Your did not check for LameXP updates yet. Check for updates now?</source> <source>Your did not check for LameXP updates yet. Check for updates now?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="984"/> <location filename="../../src/Dialog_MainWindow.cpp" line="991"/>
<source>Postpone</source> <source>Postpone</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1003"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1010"/>
<source>LameXP detected that your version of the Nero AAC encoder is outdated!</source> <source>LameXP detected that your version of the Nero AAC encoder is outdated!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1004"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1011"/>
<source>The current version available is %1 (or later), but you still have version %2 installed.</source> <source>The current version available is %1 (or later), but you still have version %2 installed.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1004"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1011"/>
<source>n/a</source> <source>n/a</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1005"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1012"/>
<source>You can download the latest version of the Nero AAC encoder from the Nero website at:</source> <source>You can download the latest version of the Nero AAC encoder from the Nero website at:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1007"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1014"/>
<source>AAC Encoder Outdated</source> <source>AAC Encoder Outdated</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1018"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1025"/>
<source>The Nero AAC encoder could not be found. AAC encoding support will be disabled.</source> <source>The Nero AAC encoder could not be found. AAC encoding support will be disabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1019"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1026"/>
<source>Please put &apos;neroAacEnc.exe&apos;, &apos;neroAacDec.exe&apos; and &apos;neroAacTag.exe&apos; into the LameXP directory!</source> <source>Please put &apos;neroAacEnc.exe&apos;, &apos;neroAacDec.exe&apos; and &apos;neroAacTag.exe&apos; into the LameXP directory!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1020"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1027"/>
<source>Your LameXP directory is located here:</source> <source>Your LameXP directory is located here:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1022"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1029"/>
<source>You can download the Nero AAC encoder for free from the official Nero website at:</source> <source>You can download the Nero AAC encoder for free from the official Nero website at:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1024"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1031"/>
<source>AAC Support Disabled</source> <source>AAC Support Disabled</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1122"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1133"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1166"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1177"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1176"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1187"/>
<source>LameXP</source> <source>LameXP</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1122"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1133"/>
<source>You must add at least one file to the list before proceeding!</source> <source>You must add at least one file to the list before proceeding!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1130"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1141"/>
<source>Not Found</source> <source>Not Found</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1130"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1141"/>
<source>Your currently selected TEMP folder does not exist anymore:</source> <source>Your currently selected TEMP folder does not exist anymore:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1130"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1141"/>
<source>Restore Default</source> <source>Restore Default</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1130"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1141"/>
<source>Cancel</source> <source>Cancel</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1143"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1154"/>
<source>Low Diskspace Warning</source> <source>Low Diskspace Warning</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1143"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1154"/>
<source>There are less than %1 GB of free diskspace available on your system&apos;s TEMP folder.</source> <source>There are less than %1 GB of free diskspace available on your system&apos;s TEMP folder.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1143"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1154"/>
<source>It is highly recommend to free up more diskspace before proceeding with the encode!</source> <source>It is highly recommend to free up more diskspace before proceeding with the encode!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1143"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1154"/>
<source>Your TEMP folder is located at:</source> <source>Your TEMP folder is located at:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1143"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1154"/>
<source>Abort Encoding Process</source> <source>Abort Encoding Process</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1143"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1154"/>
<source>Clean Disk Now</source> <source>Clean Disk Now</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1143"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1154"/>
<source>Ignore</source> <source>Ignore</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1151"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1162"/>
<source>Low Diskspace</source> <source>Low Diskspace</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1151"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1162"/>
<source>You are proceeding with low diskspace. Problems might occur!</source> <source>You are proceeding with low diskspace. Problems might occur!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1166"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1177"/>
<source>Sorry, an unsupported encoder has been chosen!</source> <source>Sorry, an unsupported encoder has been chosen!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1176"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1187"/>
<source>Cannot write to the selected output directory.</source> <source>Cannot write to the selected output directory.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1176"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1187"/>
<source>Please choose a different directory!</source> <source>Please choose a different directory!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1382"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1393"/>
<source>Load Translation</source> <source>Load Translation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1384"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1395"/>
<source>Translation Files</source> <source>Translation Files</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1415"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1426"/>
<source>Do you really want to disable the update reminder?</source> <source>Do you really want to disable the update reminder?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1415"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1426"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1441"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1452"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1467"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1478"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1519"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1530"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1614"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1625"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1651"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1662"/>
<source>Yes</source> <source>Yes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1415"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1426"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1441"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1452"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1467"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1478"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1519"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1530"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1614"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1625"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1651"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1662"/>
<source>No</source> <source>No</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1417"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1428"/>
<source>The update reminder has been disabled.</source> <source>The update reminder has been disabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1417"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1428"/>
<source>Please remember to check for updates at regular intervals!</source> <source>Please remember to check for updates at regular intervals!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1427"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1438"/>
<source>The update reminder has been re-enabled.</source> <source>The update reminder has been re-enabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1441"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1452"/>
<source>Do you really want to disable all sound effects?</source> <source>Do you really want to disable all sound effects?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1443"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1454"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1453"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1464"/>
<source>Sound Effects</source> <source>Sound Effects</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1443"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1454"/>
<source>All sound effects have been disabled.</source> <source>All sound effects have been disabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1453"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1464"/>
<source>The sound effects have been re-enabled.</source> <source>The sound effects have been re-enabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1467"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1478"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1469"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1480"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1479"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1490"/>
<source>Nero AAC Notifications</source> <source>Nero AAC Notifications</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1467"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1478"/>
<source>Do you really want to disable all Nero AAC Encoder notifications?</source> <source>Do you really want to disable all Nero AAC Encoder notifications?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1469"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1480"/>
<source>All Nero AAC Encoder notifications have been disabled.</source> <source>All Nero AAC Encoder notifications have been disabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1479"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1490"/>
<source>The Nero AAC Encoder notifications have been re-enabled.</source> <source>The Nero AAC Encoder notifications have been re-enabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1519"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1530"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1521"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1532"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1531"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1542"/>
<source>Slow Startup Notifications</source> <source>Slow Startup Notifications</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1519"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1530"/>
<source>Do you really want to disable the slow startup notifications?</source> <source>Do you really want to disable the slow startup notifications?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1521"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1532"/>
<source>The slow startup notifications have been disabled.</source> <source>The slow startup notifications have been disabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1531"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1542"/>
<source>The slow startup notifications have been re-enabled.</source> <source>The slow startup notifications have been re-enabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1566"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1577"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1570"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1581"/>
<source>Open Cue Sheet</source> <source>Open Cue Sheet</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1566"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1577"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1572"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1583"/>
<source>Cue Sheet File</source> <source>Cue Sheet File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1614"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1625"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1616"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1627"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1629"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1640"/>
<source>Beta Updates</source> <source>Beta Updates</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1614"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1625"/>
<source>Do you really want LameXP to check for Beta (pre-release) updates?</source> <source>Do you really want LameXP to check for Beta (pre-release) updates?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1616"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1627"/>
<source>LameXP will check for Beta (pre-release) updates from now on.</source> <source>LameXP will check for Beta (pre-release) updates from now on.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1616"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1627"/>
<source>Check Now</source> <source>Check Now</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1629"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1640"/>
<source>LameXP will &lt;i&gt;not&lt;/i&gt; check for Beta (pre-release) updates from now on.</source> <source>LameXP will &lt;i&gt;not&lt;/i&gt; check for Beta (pre-release) updates from now on.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1651"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1662"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1654"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1665"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1665"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1676"/>
<source>Shell Integration</source> <source>Shell Integration</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1651"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1662"/>
<source>Do you really want to disable the LameXP shell integration?</source> <source>Do you really want to disable the LameXP shell integration?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1654"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1665"/>
<source>The LameXP shell integration has been disabled.</source> <source>The LameXP shell integration has been disabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1665"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1676"/>
<source>The LameXP shell integration has been re-enabled.</source> <source>The LameXP shell integration has been re-enabled.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1762"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1773"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1771"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1782"/>
<source>Add file(s)</source> <source>Add file(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1803"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1814"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1807"/> <location filename="../../src/Dialog_MainWindow.cpp" line="1818"/>
<source>Add Folder</source> <source>Add Folder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2180"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2191"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2223"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2234"/>
<source>New Folder</source> <source>New Folder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2223"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2234"/>
<source>Enter the name of the new folder:</source> <source>Enter the name of the new folder:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2255"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2266"/>
<source>Failed to create folder</source> <source>Failed to create folder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2255"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2266"/>
<source>The new folder could not be created:</source> <source>The new folder could not be created:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2255"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2266"/>
<source>Drive is read-only or insufficient access rights!</source> <source>Drive is read-only or insufficient access rights!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2535"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2546"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2538"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2549"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2541"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2552"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2547"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2558"/>
<source>Quality Level %1</source> <source>Quality Level %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2544"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2555"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2564"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2575"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2584"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2595"/>
<source>Compression %1</source> <source>Compression %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2550"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2561"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2570"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2581"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2590"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2601"/>
<source>Uncompressed</source> <source>Uncompressed</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2614"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2625"/>
<source>Best Quality (Very Slow)</source> <source>Best Quality (Very Slow)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2617"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2628"/>
<source>High Quality (Recommended)</source> <source>High Quality (Recommended)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2620"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2631"/>
<source>Average Quality (Default)</source> <source>Average Quality (Default)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2623"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2634"/>
<source>Low Quality (Fast)</source> <source>Low Quality (Fast)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2626"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2637"/>
<source>Poor Quality (Very Fast)</source> <source>Poor Quality (Very Fast)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2890"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2901"/>
<source>File name without extension</source> <source>File name without extension</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2891"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2902"/>
<source>Track number with leading zero</source> <source>Track number with leading zero</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2892"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2903"/>
<source>Track title</source> <source>Track title</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2893"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2904"/>
<source>Artist name</source> <source>Artist name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2894"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2905"/>
<source>Album name</source> <source>Album name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2895"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2906"/>
<source>Year with (at least) four digits</source> <source>Year with (at least) four digits</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2896"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2907"/>
<source>Comment</source> <source>Comment</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2898"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2909"/>
<source>Characters forbidden in file names:</source> <source>Characters forbidden in file names:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2901"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2912"/>
<source>Rename Macros</source> <source>Rename Macros</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2914"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2925"/>
<source>%1 Instance(s)</source> <source>%1 Instance(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2958"/> <location filename="../../src/Dialog_MainWindow.cpp" line="2969"/>
<source>Cannot write to the selected directory. Please choose another directory!</source> <source>Cannot write to the selected directory. Please choose another directory!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3025"/> <location filename="../../src/Dialog_MainWindow.cpp" line="3036"/>
<source>Already Running</source> <source>Already Running</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3025"/> <location filename="../../src/Dialog_MainWindow.cpp" line="3036"/>
<source>LameXP is already running, please use the running instance!</source> <source>LameXP is already running, please use the running instance!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -30,7 +30,7 @@
#define VER_LAMEXP_MINOR_LO 3 #define VER_LAMEXP_MINOR_LO 3
#define VER_LAMEXP_TYPE Beta #define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 2 #define VER_LAMEXP_PATCH 2
#define VER_LAMEXP_BUILD 689 #define VER_LAMEXP_BUILD 690
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Tools versions // Tools versions

View File

@ -898,12 +898,19 @@ void MainWindow::windowShown(void)
{ {
QStringList arguments = QApplication::arguments(); QStringList arguments = QApplication::arguments();
//First run?
bool firstRun = false;
for(int i = 0; i < arguments.count(); i++)
{
if(!arguments[i].compare("--first-run", Qt::CaseInsensitive)) firstRun = true;
}
//Check license //Check license
if(m_settings->licenseAccepted() <= 0) if((m_settings->licenseAccepted() <= 0) || firstRun)
{ {
int iAccepted = -1; int iAccepted = -1;
if(m_settings->licenseAccepted() == 0) if((m_settings->licenseAccepted() == 0) || firstRun)
{ {
AboutDialog *about = new AboutDialog(m_settings, this, true); AboutDialog *about = new AboutDialog(m_settings, this, true);
iAccepted = about->exec(); iAccepted = about->exec();
@ -926,7 +933,7 @@ void MainWindow::windowShown(void)
PlaySound(MAKEINTRESOURCE(IDR_WAVE_WOOHOO), GetModuleHandle(NULL), SND_RESOURCE | SND_SYNC); PlaySound(MAKEINTRESOURCE(IDR_WAVE_WOOHOO), GetModuleHandle(NULL), SND_RESOURCE | SND_SYNC);
m_settings->licenseAccepted(1); m_settings->licenseAccepted(1);
showAnnounceBox(); /*Do NOT forget to remove this for the final release!*/ if(lamexp_version_demo()) showAnnounceBox();
} }
//Check for expiration //Check for expiration
@ -979,7 +986,7 @@ void MainWindow::windowShown(void)
else if(m_settings->autoUpdateEnabled()) else if(m_settings->autoUpdateEnabled())
{ {
QDate lastUpdateCheck = QDate::fromString(m_settings->autoUpdateLastCheck(), Qt::ISODate); QDate lastUpdateCheck = QDate::fromString(m_settings->autoUpdateLastCheck(), Qt::ISODate);
if(!lastUpdateCheck.isValid() || QDate::currentDate() >= lastUpdateCheck.addDays(14)) if(!firstRun && (!lastUpdateCheck.isValid() || QDate::currentDate() >= lastUpdateCheck.addDays(14)))
{ {
if(QMessageBox::information(this, tr("Update Reminder"), QString("<nobr>%1</nobr>").arg(lastUpdateCheck.isValid() ? tr("Your last update check was more than 14 days ago. Check for updates now?") : tr("Your did not check for LameXP updates yet. Check for updates now?")).replace("-", "&minus;"), tr("Check for Updates"), tr("Postpone")) == 0) if(QMessageBox::information(this, tr("Update Reminder"), QString("<nobr>%1</nobr>").arg(lastUpdateCheck.isValid() ? tr("Your last update check was more than 14 days ago. Check for updates now?") : tr("Your did not check for LameXP updates yet. Check for updates now?")).replace("-", "&minus;"), tr("Check for Updates"), tr("Postpone")) == 0)
{ {
@ -1084,15 +1091,19 @@ void MainWindow::showAnnounceBox(void)
announceText.append("If you are willing to translate LameXP to your language or to complete an existing translation, please refer to:<br>"); announceText.append("If you are willing to translate LameXP to your language or to complete an existing translation, please refer to:<br>");
announceText.append("<tt>" + LINK("http://mulder.brhack.net/public/doc/lamexp_translate.html") + "</tt></nobr><br>"); announceText.append("<tt>" + LINK("http://mulder.brhack.net/public/doc/lamexp_translate.html") + "</tt></nobr><br>");
QMessageBox *announceBox = new QMessageBox(QMessageBox::Warning, "We want you!", announceText, QMessageBox::Discard, this); QMessageBox *announceBox = new QMessageBox(QMessageBox::Warning, "We want you!", announceText, QMessageBox::NoButton, this);
announceBox->setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); announceBox->setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint);
announceBox->setIconPixmap(QIcon(":/images/Announcement.png").pixmap(64,79)); announceBox->setIconPixmap(QIcon(":/images/Announcement.png").pixmap(64,79));
announceBox->button(QMessageBox::Discard)->hide(); QPushButton *button1 = announceBox->addButton(tr("Discard"), QMessageBox::AcceptRole);
QPushButton *button2 = announceBox->addButton(tr("Discard"), QMessageBox::NoRole);
button1->setVisible(false);
button2->setEnabled(false);
QTimer *announceTimer = new QTimer(this); QTimer *announceTimer = new QTimer(this);
announceTimer->setSingleShot(true); announceTimer->setSingleShot(true);
announceTimer->setInterval(8000); announceTimer->setInterval(8000);
connect(announceTimer, SIGNAL(timeout()), announceBox->button(QMessageBox::Discard), SLOT(show())); connect(announceTimer, SIGNAL(timeout()), button1, SLOT(show()));
connect(announceTimer, SIGNAL(timeout()), button2, SLOT(hide()));
announceTimer->start(); announceTimer->start();
announceBox->exec(); announceBox->exec();