diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-01-12 20:39:23 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-01-12 20:39:26 +0100 |
commit | daa59b89b1f05cf3a2abdee9ef5ac8bffe805b13 (patch) | |
tree | 4b027770beec143d9e514819b6ca30d4a9695eab /src/main.cpp | |
parent | fe4199dace73ee38262528f7ae88cbfba99120dd (diff) |
Fix multithreading crashes
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index f6b2ae6..b985d53 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,6 +6,10 @@ #include <giomm.h> #endif +// TODO: When creating a room, immediately switch to it. +// TODO: When changing nickname or avatar, do not merge next message with previous one even if next message is sent right after the previous one. +// We want to see user changes immediately. + static int setWindowCss(dchat::Window &window, Glib::RefPtr<Gtk::CssProvider> css) { auto ctx = window.get_style_context(); @@ -32,7 +36,7 @@ static int setWindowCss(dchat::Window &window, Glib::RefPtr<Gtk::CssProvider> cs int main (int argc, char *argv[]) { - auto app = Gtk::Application::create(argc, argv, "dec05eba.dchat"); + auto app = Gtk::Application::create(argc, argv, "dec05eba.dchat", Gio::APPLICATION_NON_UNIQUE); auto css = Gtk::CssProvider::create(); dchat::Window window; if(setWindowCss(window, css) != 0) |