From 1b79d50288212f34f495768742ba782129eb93f1 Mon Sep 17 00:00:00 2001 From: Jonas Hermsmeier Date: Thu, 6 Jul 2017 22:00:07 +0200 Subject: [PATCH] fix(gui): Fix image checks in image selections (#1573) I must have screwed something up during a rebase, this mends the partition table an windows image checks. Change-Type: patch --- lib/gui/pages/main/controllers/image-selection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gui/pages/main/controllers/image-selection.js b/lib/gui/pages/main/controllers/image-selection.js index b12fa090..79c76bd8 100644 --- a/lib/gui/pages/main/controllers/image-selection.js +++ b/lib/gui/pages/main/controllers/image-selection.js @@ -83,10 +83,10 @@ module.exports = function( Bluebird.try(() => { let message = null; - if (supportedFormats.looksLikeWindowsImage(image)) { + if (supportedFormats.looksLikeWindowsImage(image.path)) { analytics.logEvent('Possibly Windows image', image); message = messages.warning.looksLikeWindowsImage(); - } else if (supportedFormats.missingPartitionTable(image)) { + } else if (!image.hasMBR) { analytics.logEvent('Missing partition table', image); message = messages.warning.missingPartitionTable(); }