summaryrefslogtreecommitdiffstats
path: root/src/gui/App.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 15:26:48 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:26:13 -0500
commit15b3b0e9f8823752f80c7e597a70749813e61c79 (patch)
tree3f324c6e2a455be8b929456dadbf06520889d435 /src/gui/App.cpp
parentd6a9571641bcb34acb3521feb08eea33195fd9ca (diff)
downloadingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.gz
ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.bz2
ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.zip
Always use braces
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r--src/gui/App.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index f67e4104..d9e8680c 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -149,9 +149,11 @@ App::run()
// Run main iterations here until we're attached to the engine. Otherwise
// with 'ingen -egl' we'd get a bunch of notifications about load
// immediately before even knowing about the root graph or plugins)
- while (!_connect_window->attached())
- if (_main->iteration())
+ while (!_connect_window->attached()) {
+ if (_main->iteration()) {
break;
+ }
+ }
_main->run();
}
@@ -351,8 +353,9 @@ void
App::port_activity(Port* port)
{
std::pair<ActivityPorts::iterator, bool> inserted = _activity_ports.insert(make_pair(port, false));
- if (inserted.second)
+ if (inserted.second) {
inserted.first->second = false;
+ }
port->set_highlighted(true);
}
@@ -361,8 +364,9 @@ void
App::activity_port_destroyed(Port* port)
{
ActivityPorts::iterator i = _activity_ports.find(port);
- if (i != _activity_ports.end())
+ if (i != _activity_ports.end()) {
_activity_ports.erase(i);
+ }
return;
}
@@ -402,8 +406,9 @@ App::register_callbacks()
bool
App::gtk_main_iteration()
{
- if (!_client)
+ if (!_client) {
return false;
+ }
if (_messages_window) {
_messages_window->flush();