Skip to content

Commit

Permalink
Merge pull request #209 from mchf/Code-11-SP3
Browse files Browse the repository at this point in the history
disable '-o' option for dummy module if hwcfg widget doesn't exist (bnc#...
  • Loading branch information
mchf committed Jun 9, 2014
2 parents 5345220 + 46faeef commit 8f64ca6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
2.17.198
2.17.199
9 changes: 9 additions & 0 deletions package/yast2-network.changes
@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Jun 9 07:21:45 UTC 2014 - mfilka@suse.com

- bnc#840565
- configuring dummy netwok interface error disable '-o' option
for dummy module (ported from OS: bnc#767946) hwcfg widget
doesn't exist
- 2.17.199

-------------------------------------------------------------------
Wed Mar 26 07:16:14 UTC 2014 - mfilka@suse.com

Expand Down
10 changes: 7 additions & 3 deletions src/lan/hardware.ycp
Expand Up @@ -539,10 +539,14 @@ symbol handleHW (string key, map event) {
}
else if (hardware["type"]:"" == "dummy") // #44582
{
hardware["hwcfg"] = (string) UI::QueryWidget (`id (`hwcfg), `Value);

hardware["modul"] = "dummy";
hardware["options"] = sformat ("-o dummy-%1", hardware["hwcfg"]:"");

if( UI::WidgetExists( `id( `hwcfg))) // bnc#767946
{
hardware["hwcfg"] = (string) UI::QueryWidget (`id (`hwcfg), `Value);
hardware["options"] = sformat ("-o dummy-%1", hardware["hwcfg"]:"");
}

UI::ChangeWidget(`id(`modul), `Value, hardware["modul"]:"");
UI::ChangeWidget(`id(`options), `Value, hardware["options"]:"");
}
Expand Down

0 comments on commit 8f64ca6

Please sign in to comment.