-
Notifications
You must be signed in to change notification settings - Fork 16
vizkit bugfixes #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
vizkit bugfixes #48
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,15 +18,18 @@ def self.create_widget(parent = nil) | |
|
|
||
| #populate widget menu | ||
| Vizkit.default_loader.plugin_specs.keys.sort.each do |name| | ||
| # do not add qt base widgets | ||
| next if name[0] == "Q" && Qt.const_defined?(name[1..-1]) | ||
| action = form.menuWidgets.addAction(name) | ||
| action.connect SIGNAL("triggered()") do | ||
| w = Vizkit.default_loader.create_plugin name | ||
| w.show if w.respond_to?(:show) || w.kind_of?(Qt::Widget) | ||
| begin | ||
| # do not add qt base widgets | ||
| next if name[0] == "Q" && Qt.const_defined?(name[1..-1]) | ||
| action = form.menuWidgets.addAction(name) | ||
| action.connect SIGNAL("triggered()") do | ||
| w = Vizkit.default_loader.create_plugin name | ||
| w.show if w.respond_to?(:show) || w.kind_of?(Qt::Widget) | ||
| end | ||
| rescue | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where exactly does the error occur in this block?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm using QwtThermo widget. But it's always searching for wtThermo widget and crashed when trying to add it |
||
| Vizkit.warn "#{name} widget could not been added" | ||
| end | ||
| end | ||
|
|
||
| form | ||
| end | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What in your case is bla ?, is it not related to the hostname during replay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not check replays ... but in the other tests bla is just "."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should:
Other than that the fix solves the problem 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ruby idiom for "just ignore this value" is the underscore character