Re: Beta 3 - "save changes" pops up on unchanged queries

From: Dave Page <dpage(at)postgresql(dot)org>
To: William Trenker <wtrenker(at)gmail(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: Beta 3 - "save changes" pops up on unchanged queries
Date: 2007-08-16 14:50:48
Message-ID: 46C46448.3030900@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Guy Rouillier 2007-08-16 19:02:51 No indication of activity during count
Previous Message Dave Page 2007-08-16 14:31:18 Re: pgAdmin III v1.8.0 Beta 3 released