From daa59b89b1f05cf3a2abdee9ef5ac8bffe805b13 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 12 Jan 2019 20:39:23 +0100 Subject: Fix multithreading crashes --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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 #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 css) { auto ctx = window.get_style_context(); @@ -32,7 +36,7 @@ static int setWindowCss(dchat::Window &window, Glib::RefPtr 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) -- cgit v1.2.3