fix startup items in apps file with specified screen number

This commit is contained in:
Mark Tiefenbruck 2007-12-17 10:28:45 -08:00
parent 51377a3c36
commit c39af52bfc
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
(Format: Year/Month/Day)
Changes for 1.0.1:
*07/12/17:
* Fix startup items in apps file with specified screen number, bug #1843325
(thanks Martin)
Remember.cc
*07/12/14:
* Fix compiling with gcc 4.3 (thanks Dmitry E. Oboukhov)
main.cc

View file

@ -212,7 +212,7 @@ bool handleStartupItem(const string &line, int offset) {
if (pos > 0) {
option = str.substr(0, pos);
if (strcasecmp(option.c_str(), "screen") == 0) {
error = getuint(str.c_str() + pos + 1, screen);
error = !getuint(str.c_str() + pos + 1, screen);
} else {
error = true;
}