Fix autostart setting

* Value was used instead of pointer.
This commit is contained in:
Adrien Destugues
2015-11-10 14:28:42 +01:00
parent c2458eff45
commit d736498f85

View File

@@ -126,7 +126,7 @@ index 38622e3..34f6da5 100644
2.2.2
From d8b46bf2128de83c2a0509fa5a7ffdae4be050bc Mon Sep 17 00:00:00 2001
From 2b15cabcd06ae85b2af80aa2611989586f048c3c Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Tue, 10 Nov 2015 14:08:30 +0100
Subject: Remove rescue, add autostart
@@ -437,7 +437,7 @@ index 3f88162..84342fc 100644
if ( node.InitCheck() == B_OK )
diff --git a/source/main.cpp b/source/main.cpp
index 34f6da5..542fa07 100644
index 34f6da5..1126ce8 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -15,11 +15,13 @@ class MyApp : public BApplication
@@ -477,7 +477,7 @@ index 34f6da5..542fa07 100644
} break;
+ case 'Auto':
+ {
+ msg->FindBool("autostart", fAutoStart);
+ msg->FindBool("autostart", &fAutoStart);
+ SaveSettings();
+ } break;
default: