Changeset afd454ec7bc71e7259cfcffc87e8fc831fe91a0c

Show
Ignore:
Timestamp:
17/10/08 02:55:46 (5 years ago)
Author:
Armin Burgmeier <armin@…>
Parents:
58965b7960d54ff675c730805c4b87f9535d43be
Children:
ceb01ffcf55b2cb6b0afaec921a6b28cb73d5e2d
git-committer:
Armin Burgmeier <armin@arbur.net> / 2008-10-17T02:55:46Z+0200
Message:

Show a senseful error message when a synchronization failed

2008-10-16 Armin Burgmeier <armin@…>

  • code/commands/browser-commands.cpp (on_synchronization_failed): Remove the entry from the session map directly instead of waiting for session closure, otherwise the error message is overwritten with a useless (and incorrent) 'The connection to the publisher has been lost' one.
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rb19be5b rafd454e  
     12008-10-16  Armin Burgmeier  <armin@arbur.net> 
     2 
     3        * code/commands/browser-commands.cpp (on_synchronization_failed): 
     4        Remove the entry from the session map directly instead of waiting for 
     5        session closure, otherwise the error message is overwritten with a 
     6        useless (and incorrent) 'The connection to the publisher has been 
     7        lost' one. 
     8 
    192008-10-15  Armin Burgmeier  <armin@arbur.net> 
    210 
  • code/commands/browser-commands.cpp

    r8429a15 rafd454e  
    395395                gtk_text_buffer_set_modified( 
    396396                        GTK_TEXT_BUFFER(window->get_text_buffer()), FALSE); 
     397 
     398                // Don't wait until the session is closed because of this, 
     399                // since this would also cause a connection notify, 
     400                // overwriting the error message with a useless one. 
     401                m_session_map.erase(iter); 
    397402        } 
    398403}