Hi, Johannes, I'm replying off the record and to you only as this is not of general interest to non-YaST folks.
Because of the "Widget id `back is not unique" message I searched for '`back' in the source code in the YaST scanner module and found only one interesting spot in /usr/share/YaST2/include/scanner/dialogs.ycp --------------------------------------------------------------------------- ---- any SelectModelDialog() ... Wizard::SetContentsButtons( caption, contents, HELPS["select_model"]:"", Label::BackButton(), Label::NextButton() );
General rule of thumb: widget ID must be unique within one dialog i.e. two or more widgets must not share the same ID. Here you are creating widget with ID `back:
Wizard::SetAbortButton( `back, Label::CancelButton() );
Wizard::DisableBackButton(); The old back button is now disabled (greyed out), but it is still there => ID `back is not unique.
You'd better do Wizard::HideBackButton() here. Or use Wizard::OpenOKDialog() instead of Wizard::CreateDialog()- then you don't have to do any button relabelling yourself Or do { Wizard::SetContentsButtons( caption, contents, HELPS["select_model"]:"", Label::CancelButton(), Label::OKButton() ); } in the beginning Freedom of choice :) hB. -- \\\\\ Katarina Machalkova \\\\\\\__o YaST developer __\\\\\\\'/_ & hedgehog painter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org