diff options
Diffstat (limited to 'src/Interface')
-rw-r--r-- | src/Interface/Dialog.cs | 4 | ||||
-rw-r--r-- | src/Interface/RibbonController.cs | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/Interface/Dialog.cs b/src/Interface/Dialog.cs index 806e92d..23f65d7 100644 --- a/src/Interface/Dialog.cs +++ b/src/Interface/Dialog.cs @@ -16,9 +16,9 @@ namespace RehauSku.Interface { return dialog.FileName; } - } - return string.Empty; + else return string.Empty; + } } public static string[] GetMultiplyFiles() diff --git a/src/Interface/RibbonController.cs b/src/Interface/RibbonController.cs index b2e7b28..822fe98 100644 --- a/src/Interface/RibbonController.cs +++ b/src/Interface/RibbonController.cs @@ -91,7 +91,11 @@ namespace RehauSku.Interface public void OnSetPricePressed(IRibbonControl control) { string path = Dialog.GetFilePath(); - RegistryUtil.PriceListPath = path; + + if (!string.IsNullOrEmpty(path)) + { + RegistryUtil.PriceListPath = path; + } } } } |