don't crash checkinf file system support if no partition table is present

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1129264
This commit is contained in:
Volker Lanz 2010-05-21 19:52:22 +00:00
parent aa065376b3
commit f9c0fcd0b3
1 changed files with 3 additions and 0 deletions

View File

@ -1044,6 +1044,9 @@ void MainWindow::onPropertiesDevice(const QString&)
static QStringList checkSupportInNode(const PartitionNode* parent)
{
if (parent == NULL)
return QStringList();
QStringList rval;
foreach(const PartitionNode* node, parent->children())