[haiku-bugs] Re: [Haiku] #8556: [StyledEdit] increases window number even if previous one was closed

  • From: "ejno1" <trac@xxxxxxxxxxxx>
  • Date: Wed, 26 Jun 2013 13:01:21 -0000

#8556: [StyledEdit] increases window number even if previous one was closed
---------------------------------------+----------------------------
   Reporter:  diver                    |      Owner:  leavengood
       Type:  bug                      |     Status:  assigned
   Priority:  normal                   |  Milestone:  R1
  Component:  Applications/StyledEdit  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  1                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by ejno1):

 Replying to [comment:13 siarzhuk]:
 > Replying to [comment:12 ejno1]:
 > > Patch. Selects the lowest unused number for new Untitled documents.
 >
 > Note that as it was discussed in comment:9 we are planning to use more
 generic solution for this problem that can be utilized in every
 application requiring such functionality. Could you try to improve your
 patch in this direction? Thank you for the contribution!
 >
 > PS: there are some codestyle issues in your patch so please take care
 about it too. ;-)

 Sorry, I didn't use that method because I wasn't sure I understood it. It
 seems to me that WindowState would store the title and position of each
 window, but I don't see why that's necessary when be_app already contains
 that information. I'm probably missing something.

 I've noticed a slightly embarrassing problem with my code so I'll update
 it now even if it isn't the final solution.

--
Ticket URL: <http://dev.haiku-os.org/ticket/8556#comment:14>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: