[PC-BSD Commits] r8247 - pcbsd/stable/pcbsdusermanager

svn at pcbsd.org svn at pcbsd.org
Tue Dec 21 10:14:51 PST 2010


Author: kris
Date: 2010-12-21 10:14:51 -0800 (Tue, 21 Dec 2010)
New Revision: 8247

Modified:
   pcbsd/stable/pcbsdusermanager/adddlgcode.cpp
Log:

MFC fix to adding users in non /home dirs, like /nonexistant



Modified: pcbsd/stable/pcbsdusermanager/adddlgcode.cpp
===================================================================
--- pcbsd/stable/pcbsdusermanager/adddlgcode.cpp	2010-12-21 18:14:07 UTC (rev 8246)
+++ pcbsd/stable/pcbsdusermanager/adddlgcode.cpp	2010-12-21 18:14:51 UTC (rev 8247)
@@ -301,13 +301,12 @@
    else
    {
        //If we need to issue a warning, do it, only continue if the user wishes it to be so.
-       int abortAdd = 0;
+       int abortAdd = QMessageBox::Yes;
        if (warnError)
-       {
-	   abortAdd = QMessageBox::warning(this, tr("Warning!"), warnText, QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
-       }
+	 abortAdd = QMessageBox::warning(this, tr("Warning!"), warnText, QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
+
        //Check we didn't abort the operation
-       if (abortAdd == 0)
+       if (abortAdd == QMessageBox::Yes)
        {
 	   QString group = groupBox->currentText();
 	   if (groupRadioNew->isChecked() == true) { group = QString::null; }



More information about the Commits mailing list