[Tux4kids-commits] r1439 - in tux4kids-admin/trunk: libtux4kidsadmin tux4kids-admin/src

Michał Świtakowski swistakers-guest at alioth.debian.org
Sat Aug 15 21:10:40 UTC 2009


Author: swistakers-guest
Date: 2009-08-15 21:10:40 +0000 (Sat, 15 Aug 2009)
New Revision: 1439

Modified:
   tux4kids-admin/trunk/libtux4kidsadmin/computerDir.cpp
   tux4kids-admin/trunk/tux4kids-admin/src/manageStudentsWidget.cpp
   tux4kids-admin/trunk/tux4kids-admin/src/studentTableModel.cpp
Log:
fixed bugs

Modified: tux4kids-admin/trunk/libtux4kidsadmin/computerDir.cpp
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin/computerDir.cpp	2009-08-15 20:21:26 UTC (rev 1438)
+++ tux4kids-admin/trunk/libtux4kidsadmin/computerDir.cpp	2009-08-15 21:10:40 UTC (rev 1439)
@@ -57,7 +57,9 @@
 	}
 	d->studentDir = 0;
 
-	foreach (QString fileName, d->mainDir.entryList(QDir::Files)) {
+	foreach (QString fileName, d->mainDir.entryList(QDir::Files
+							| QDir::Dirs
+							| QDir::NoDotAndDotDot)) {
 		d->mainDir.remove(d->mainDir.absoluteFilePath(fileName));
 	}
 

Modified: tux4kids-admin/trunk/tux4kids-admin/src/manageStudentsWidget.cpp
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/src/manageStudentsWidget.cpp	2009-08-15 20:21:26 UTC (rev 1438)
+++ tux4kids-admin/trunk/tux4kids-admin/src/manageStudentsWidget.cpp	2009-08-15 21:10:40 UTC (rev 1439)
@@ -62,8 +62,10 @@
 	studentDir->setFirstName(m_addStudentDialog->firstName());
 	studentDir->setLastName(m_addStudentDialog->lastName());
 	foreach (QString profileType, m_addStudentDialog->checkedApplicationNames()) {
+		qDebug() << profileType;
 		studentDir->addProfileDir(profileType);
 	}
+	qDebug() << "po";
 }
 
 void ManageStudentsWidget::setEditButtons()

Modified: tux4kids-admin/trunk/tux4kids-admin/src/studentTableModel.cpp
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/src/studentTableModel.cpp	2009-08-15 20:21:26 UTC (rev 1438)
+++ tux4kids-admin/trunk/tux4kids-admin/src/studentTableModel.cpp	2009-08-15 21:10:40 UTC (rev 1439)
@@ -141,6 +141,7 @@
 {
 	beginInsertRows(QModelIndex(), m_students.size(), m_students.size());
 	m_students.append(newStudent);
+	m_studentsSelection.append(false);
 	endInsertRows();
 }
 




More information about the Tux4kids-commits mailing list