Skip to content

Commit

Permalink
Fix opening project in already running instance (via socket).
Browse files Browse the repository at this point in the history
Previously the code didn't properly handle the case when other project
is already opened.
  • Loading branch information
earshinov authored and b4n committed Mar 18, 2012
1 parent 6badca5 commit f4afe96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/socket.c
Expand Up @@ -86,7 +86,7 @@
#include "utils.h"
#include "dialogs.h"
#include "encodings.h"

#include "project.h"


#ifdef G_OS_WIN32
Expand Down Expand Up @@ -563,7 +563,10 @@ static void handle_input_filename(const gchar *buf)
if (locale_filename)
{
if (g_str_has_suffix(locale_filename, ".geany"))
main_load_project_from_command_line(locale_filename, TRUE);
{
if (project_ask_close())
main_load_project_from_command_line(locale_filename, TRUE);
}
else
main_handle_filename(locale_filename);
}
Expand Down

0 comments on commit f4afe96

Please sign in to comment.