[Qt-creator] Disabling File Changed dialog
Coda Highland
coda at bobandgeorge.com
Tue Jul 7 04:21:02 CEST 2009
Could I suggest a related option to always ignore external modifications?
Would it be possible to tag the automatic behavior on a file-per-file basis?
/s/ Adam
On Mon, Jul 6, 2009 at 2:43 PM, Henrik Abelsson<abelsson at gmail.com> wrote:
> Hey all,
>
> I created a patch which adds an option to automatically reload changes. It's
> implemented as global option for all files and projects at the moment,
> similar to "Automatic reload of externally modified files" in Visual Studio.
> It should silently reload unmodified files, but still prompt you on files
> which have been modified but are unsaved.
>
> The patch is here for review:
>
> http://qt.gitorious.org/~abelsson/qt-creator/abelssons-clone/commit/b93560f4b4ff02b55175320c4ce7348d70e8c7b9
>
> I'm still relatively new to this codebase, but quite enjoy hacking a bit on
> it. Would any experienced trolls please let me know if I'm breaking any
> fundamental design principles with this patch? :)
>
> -henrik
>
> On Fri, Jul 3, 2009 at 10:47 PM, Ilyes Gouta <ilyes.gouta at gmail.com> wrote:
>>
>> Hi,
>>
>> I've been experiencing this annoying behavior too in my Qt Creator
>> project where I have couple lex and bison files generated, where I get
>> that dialog at every build cycle!
>>
>> Best approach: Give the choice to the end-user. We could for example,
>> add a tick box for such a dialog (per file?) to let the user ignore or
>> accept such a warning. Another global setting would restore all the
>> warnings for the entire project.
>>
>> Regards,
>> Ilyes Gouta.
>>
>> P.S: Qt Creator rocks! we've been dreaming about such an IDE for a
>> long time! Keep up the good work!
>>
>> On Fri, Jul 3, 2009 at 4:31 PM, Coda Highland<coda at bobandgeorge.com>
>> wrote:
>> > I completely agree with the current behavior as defaults, although I
>> > would agree to options to set the behavior.
>> >
>> > The reason you might not want to reload the file from disk is because
>> > reloading kills your undo history. Also, the update may have been
>> > unexpected and you want to inspect the changes before loading them, or
>> > worse you may have had unsaved changes in the editor.
>> >
>> > /s/ Adam
>> >
>> > On Thu, Jul 2, 2009 at 11:46 AM, Jonathan Arnold<jdarnold at buddydog.org>
>> > wrote:
>> >> Is there any way to turn off the File Changed dialog in Qt Creator? I
>> >> have been
>> >> playing with having emacs as my external editor, but getting a dialog
>> >> every time
>> >> I switch back to Qt Creator asking if I want to reload the file because
>> >> it has
>> >> changed on the disk makes the feature much less useful. In fact, I
>> >> really can't
>> >> come up with a compelling reason as to why reloading silently wouldn't
>> >> be the
>> >> default option. How many times does a developer *not* want to reload
>> >> the editor
>> >> with the file that is on the disk? This is esp. true when you use a
>> >> source code
>> >> control system and sync with the latest.
>> >>
>> >> --
>> >> Jonathan Arnold Webstream: http://hieronymus.soup.io
>> >>
>> >> Here’s a bumper sticker I’d like to see: “We are the proud parents
>> >> of a child who’s self-esteem is sufficient that he doesn’t need us
>> >> promoting his minor scholastic achievements on the back of our car."
>> >> -- George Carlin
>> >> _______________________________________________
>> >> Qt-creator mailing list
>> >> Qt-creator at trolltech.com
>> >> http://lists.trolltech.com/mailman/listinfo/qt-creator
>> >>
>> >
>> > _______________________________________________
>> > Qt-creator mailing list
>> > Qt-creator at trolltech.com
>> > http://lists.trolltech.com/mailman/listinfo/qt-creator
>> >
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
More information about the Qt-creator-old
mailing list