Re: Beta 3 - "save changes" pops up on unchanged queries - Mailing list pgadmin-support

From Dave Page
Subject Re: Beta 3 - "save changes" pops up on unchanged queries
Date
Msg-id 46C46448.3030900@postgresql.org
Whole thread Raw
In response to Beta 3 - "save changes" pops up on unchanged queries  ("William Trenker" <wtrenker@gmail.com>)
List pgadmin-support
William Trenker wrote:
> Whenever I open a saved query and run it, the "Do you want to save
> changes?" dialog pops up even though I have made no changes to the
> query.  (This also happened with Beta 2.)
> 
> To reproduce:
> 
> 1.  Open the query window
> 2.  Enter the query "Select 1"
> 3.  Save the query
> 4.  Open the saved query
> 5.  Run it.
> 6.  Close the query window.  The "save changes" dialog pops up.

Thanks - it seems the styled text control fires a change event when it 
loses focus. Fortunately theres an event type member in the event object 
so I've just prevented loss of focus causing the changed flag to be set.

Regards, Dave


pgadmin-support by date:

Previous
From: Dave Page
Date:
Subject: Re: pgAdmin III v1.8.0 Beta 3 released
Next
From: Guy Rouillier
Date:
Subject: No indication of activity during count