summaryrefslogtreecommitdiff
path: root/plugingui/drumkittab.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-02-11 10:52:30 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-02-11 10:52:30 +0100
commit43c2a51331d3e91d86ef50c5262920bdaa260925 (patch)
treeffc5b03be36537e6f028df935a251493d4557979 /plugingui/drumkittab.cc
parent152423c0274887415b50c0d31828036a8fe54708 (diff)
Show/hide drumkit tab depending on if the current kit has a valid image attached or not.
Diffstat (limited to 'plugingui/drumkittab.cc')
-rw-r--r--plugingui/drumkittab.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/drumkittab.cc b/plugingui/drumkittab.cc
index d6475fa..c3ee62e 100644
--- a/plugingui/drumkittab.cc
+++ b/plugingui/drumkittab.cc
@@ -42,12 +42,10 @@ namespace GUI
DrumkitTab::DrumkitTab(Widget* parent,
Settings& settings,
- SettingsNotifier& settings_notifier/*,
- Config& config*/)
+ SettingsNotifier& settings_notifier)
: Widget(parent)
, settings(settings)
, settings_notifier(settings_notifier)
- /*, config(config)*/
{
velocity_label.move(10, height()-velocity_label.height()-5);
updateVelocityLabel();
@@ -293,6 +291,8 @@ void DrumkitTab::init(std::string const& image_file,
}
}
}
+
+ imageChangeNotifier(drumkit_image->isValid());
}
void DrumkitTab::drumkitFileChanged(const std::string& drumkit_file)