[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [partitionmanager] src/gui: Fix creation of FAT mountpoints.
From:       Andrius_Å tikonas <null () kde ! org>
Date:       2017-11-30 23:34:46
Message-ID: E1eKYLu-00039v-51 () code ! kde ! org
[Download RAW message or body]

Git commit d4c72ad075c3d099f312e1dfe0d5a1607b38b4b7 by Andrius Å tikonas.
Committed on 30/11/2017 at 23:33.
Pushed by stikonas into branch 'master'.

Fix creation of FAT mountpoints.

BUG: 387463

M  +13   -2    src/gui/editmountpointdialogwidget.cpp

https://commits.kde.org/partitionmanager/d4c72ad075c3d099f312e1dfe0d5a1607b38b4b7

diff --git a/src/gui/editmountpointdialogwidget.cpp b/src/gui/editmountpointdialogwidget.cpp
index d239c6d..33bb022 100644
--- a/src/gui/editmountpointdialogwidget.cpp
+++ b/src/gui/editmountpointdialogwidget.cpp
@@ -60,9 +60,20 @@ EditMountPointDialogWidget::EditMountPointDialogWidget(QWidget* parent, const Pa
     }
 
     if (!entryFound) {
-        QString fsName = partition().fileSystem().name();
-        if (fsName == FileSystem::nameForType(FileSystem::LinuxSwap))
+        FileSystem::Type type = partition().fileSystem().type();
+        QString fsName;
+        switch (type) {
+        case FileSystem::LinuxSwap:
             fsName = QStringLiteral("swap");
+            break;
+        case FileSystem::Fat16:
+        case FileSystem::Fat32:
+            fsName = QStringLiteral("vfat");
+            break;
+        default:
+            fsName = partition().fileSystem().name();
+        }
+
         entry = new FstabEntry(m_deviceNode, QString(), fsName, QString());
         m_fstabEntries.append(*entry);
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic