File oooqs-1.0_rc3-first_start.patch of Package OpenOffice_org-Quickstarter

--- oooqs/oooqs.cpp
+++ oooqs/oooqs.cpp
@@ -89,21 +89,26 @@
 	/** If the config is not accessible (e.g. not existing) */
 	config->setGroup("General options");
 	quickstartEnabled = config->readBoolEntry("quickstart", false);
+
 	if (config->readBoolEntry("first", true)){
 		/** Fill the variables with default values */
 		rereadConfig();
-		/** Display a messagebox and execute the preferencesDialog */
-		KMessageBox::information(0, i18n(\
-			"You don't seem to have a valid configuration.\
-That's ok if you start OpenOffice.org Quickstarter for the first time.\n\n\
-The configuration-dialog will now be called so that you can enter the required data.\n\
-You can access the dialog any time later by selecting \"Configure OpenOffice.org Quickstarter...\" in the context-menu."),\
-i18n("No valid config found"));
-		/*if (preferencesDialog->exec() == QDialog::Rejected){
-			KMessageBox::information(this, "wir sollten uns eigentlich beenden");
-			//kapp->exit(0);
-		}*/
-		preferencesDialog->exec();
+		
+		/** Ask wheter to use the Quickstart mode */
+    		if (KMessageBox::questionYesNo(0, i18n("By loading the office suite in the background after login, the quickstart mode can greatly reduce OpenOffice.org's start-up time, but permanently requires about 30MB of RAM. If you use OpenOffice.org frequently and have 128MB of RAM or more, 'Yes' might be a good choice.\n"
+						       "\n"
+						       "Do you want to enable the OpenOffice.org quickstart mode now?\n"
+						       "\n"
+						       "Note: You may change this setting anytime in the Quickstarter configuration dialog.")) == 3) {
+			preferencesDialog->enableQuick->setChecked(true);
+			quickstartEnabled=true;
+		} else {
+			preferencesDialog->enableQuick->setChecked(false);
+			quickstartEnabled=false;
+		}
+
+		/** save default values into the config file */
+		changedConfig();
 	}else{
 		rereadConfig();
 	}
openSUSE Build Service is sponsored by