aboutsummaryrefslogtreecommitdiff
path: root/src/Interface/RibbonController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Interface/RibbonController.cs')
-rw-r--r--src/Interface/RibbonController.cs6
1 files changed, 5 insertions, 1 deletions
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;
+ }
}
}
}