summaryrefslogtreecommitdiff
authorumopapisdn <umopapisdn>2002-10-15 11:25:36 (UTC)
committer umopapisdn <umopapisdn>2002-10-15 11:25:36 (UTC)
commitb6fb59110629634056be3dd5c3091e6ed3271fd0 (patch) (side-by-side diff)
treee5ea61782d46b6fbc599d4b27e443d5002035958
parent42ff9036e791321b4938d80c5d8386a76391f56b (diff)
downloadopie-b6fb59110629634056be3dd5c3091e6ed3271fd0.zip
opie-b6fb59110629634056be3dd5c3091e6ed3271fd0.tar.gz
opie-b6fb59110629634056be3dd5c3091e6ed3271fd0.tar.bz2
System checking for OpenZaurus is now done through libopie (ODevice::system)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/usermanager/userdialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp
index 42a9144..36bcf86 100644
--- a/noncore/settings/usermanager/userdialog.cpp
+++ b/noncore/settings/usermanager/userdialog.cpp
@@ -23,8 +23,12 @@
#include <signal.h>
#include "passwd.h"
+#include <opie/odevice.h>
+using namespace Opie;
+
+
/**
* UserDialog constructor. Setup the dialog, fill the groupComboBox & groupsListView with all groups.
*
*/
@@ -189,9 +193,10 @@ void UserDialog::setupTab2() {
*/
bool UserDialog::addUser(int uid, int gid) {
QCheckListItem *temp;
QFile ozTest;
- int oz=ozTest.exists("/etc/oz_version");
+ int oz=false;
+ if(ODevice::inst()->system()==System_OpenZaurus) oz=true;
UserDialog *adduserDialog=new UserDialog();
adduserDialog->setCaption(tr("Add User"));
adduserDialog->userID=uid; // Set next available UID as default uid.
adduserDialog->groupID=gid; // Set next available GID as default gid.