From b6fb59110629634056be3dd5c3091e6ed3271fd0 Mon Sep 17 00:00:00 2001 From: umopapisdn Date: Tue, 15 Oct 2002 11:25:36 +0000 Subject: System checking for OpenZaurus is now done through libopie (ODevice::system) --- (limited to 'noncore') 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 @@ -24,6 +24,10 @@ #include "passwd.h" +#include +using namespace Opie; + + /** * UserDialog constructor. Setup the dialog, fill the groupComboBox & groupsListView with all groups. * @@ -190,7 +194,8 @@ 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. -- cgit v0.9.0.2