Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-09

Close Project means Close Project!

11 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ajeandro Gonzalo

When we do Project|Close Project it indeed seems to close the project. BUT when we Quit Laz and then open it again, there is the project loaded again! This is NOT what is wanted, and it is an annoyance, to say the least, to have to open a new project before Quit just avoid the undead project! Please fix, at least by the next version. Thank you.

A. G.

Reply by email

Samuel Herzog
to Ajeandro Gonzalo: When we do Project|Close Project it indeed seems to close the project. BUT when we Quit…

Hi Ajeandro,

I know it is annoying, I reported this already several years ago. But I is also not easy to fix. ( because it was never designed this way, don't know why ). Anyway... Lazarus is open-source, so you are invited to fix it and send a patch :-)

Regards,

Sam

________________________________
Von: Ajeandro Gonzalo
An:
Gesendet: 21:30 Dienstag, 18.September 2012
Betreff: [Lazarus] Close Project means Close Project!

When we do Project|Close Project it indeed seems to close the project. BUT when we Quit Laz and then open it again, there is the project loaded again!? This is NOT what is wanted, and it is an annoyance, to say the least, to have to open a new project before Quit just avoid the undead project!? Please fix, at least by the next version.? Thank you.

A. G.

Reply by email

Juha Manninen
to Ajeandro Gonzalo: When we do Project|Close Project it indeed seems to close the project. BUT when we Quit…
Ajeandro Gonzalo wrote
When we do Project|Close Project it indeed seems to close the project. BUT when we Quit Laz and then open it again, there is the project loaded again! This is NOT what is wanted, and it is an annoyance, to say the least, to have to open a new project before Quit just avoid the undead project! Please fix, at least by the next version. Thank you.

The right fix would be to clear the last opened project memory when a project is closed.
Then a new project would be created when Lazarus starts next time. I didn't look at the code now but it should be relatively easy. If you provide a patch, I can apply it.

Juha

Reply by email

Martin
to Juha Manninen
Juha Manninen wrote 5 lines
The right fix would be to clear the last opened project memory when a project is closed. Then a new project would be created when Lazarus starts next time. I didn't look at the code now but it should be relatively easy. If you provide a patch, I can apply it.

Actually I like and the current behaviour..

I have "open last project ay start" option enabled. And I often find myself testing something on a "New and not saved" project. Even if I stop working and close the IDE, the saved project I .worked on will be back

Reply by email

Chavoux Luyt
to Martin

Hi

Martin wrote 14 lines
On 18/09/2012 22:19, Juha Manninen wrote: > > The right fix would be to clear the last opened project memory when a > project is closed. > Then a new project would be created when Lazarus starts next time. > I didn't look at the code now but it should be relatively easy. If you > provide a patch, I can apply it. Actually I like and the current behaviour.. I have "open last project ay start" option enabled. And I often find myself testing something on a "New and not saved" project. Even if I stop working and close the IDE, the > > saved project I .worked on will be back

Maybe the solution is simply to change the default settings? I think most people (myself included) would like a closed project to stay closed when Lazarus restarts. It is also the usual behaviour in other IDE's. Then those who like the current setting can still change it?

Cheers
Chavoux

Reply by email

Sven Barth
to Chavoux Luyt
Chavoux Luyt wrote 22 lines
Hi On 19 September 2012 09:01, Martin wrote: > > On 18/09/2012 22:19, Juha Manninen wrote: >> >> The right fix would be to clear the last opened project memory when a >> project is closed. >> Then a new project would be created when Lazarus starts next time. >> I didn't look at the code now but it should be relatively easy. If you >> provide a patch, I can apply it. > > > Actually I like and the current behaviour.. > > I have "open last project ay start" option enabled. > And I often find myself testing something on a "New and not saved" project. Even if I stop working and close the IDE, the > > saved project I .worked on will be back Maybe the solution is simply to change the default settings? I think most people (myself included) would like a closed project to stay closed when Lazarus restarts. It is also the usual behaviour in other IDE's. Then those who like the current setting can still change it?

This works the other way round as well: leave the setting as it is and those who like it the other way can change it.

Note: I prefer the current default of reopening the last project.

Regards,
Sven

Reply by email

patspiper
to Martin: Actually I like and the current behaviour.. I have "open last project ay start" option…
Martin wrote 13 lines
On 18/09/2012 22:19, Juha Manninen wrote: > The right fix would be to clear the last opened project memory when a > project is closed. > Then a new project would be created when Lazarus starts next time. > I didn't look at the code now but it should be relatively easy. If you > provide a patch, I can apply it. Actually I like and the current behaviour.. I have "open last project ay start" option enabled. And I often find myself testing something on a "New and not saved" project. Even if I stop working and close the IDE, the saved project I .worked on will be back

I am for the current behaviour too. However, if I understand correctly, the sticking issue is whether creating a new project is treated like opening an existing one as far as the "open last project on start" option is concerned. Maybe that can be added as a sub option as well ("even if new").

Stephano

Reply by email

Mattias Gaertner
to patspiper

patspiper hat am 19. September 2012 um 10:21 geschrieben:

Show quoted text 19 lines
On 19/09/12 10:01, Martin wrote: > On 18/09/2012 22:19, Juha Manninen wrote: >> The right fix would be to clear the last opened project memory when a >> project is closed. >> Then a new project would be created when Lazarus starts next time. >> I didn't look at the code now but it should be relatively easy. If you >> provide a patch, I can apply it. > > Actually I like and the current behaviour.. > > I have "open last project ay start" option enabled. > And I often find myself testing something on a "New and not saved" > project. Even if I stop working and close the IDE, the saved project > I .worked on will be back I am for the current behaviour too. However, if I understand correctly, the sticking issue is whether creating a new project is treated like opening an existing one as far as the "open last project on start" option is concerned. Maybe that can be added as a sub option as well ("even if new").

Please create a feature request to save the state "new project" and "no project" on IDE close.
You can assign it to me.

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120919/4098b8cc/attachment.html>

Reply by email

patspiper
to Mattias Gaertner
Mattias Gaertner wrote 27 lines
patspiper hat am 19. September 2012 um 10:21 geschrieben: > On 19/09/12 10:01, Martin wrote: > > On 18/09/2012 22:19, Juha Manninen wrote: > >> The right fix would be to clear the last opened project memory when a > >> project is closed. > >> Then a new project would be created when Lazarus starts next time. > >> I didn't look at the code now but it should be relatively easy. If you > >> provide a patch, I can apply it. > > > > Actually I like and the current behaviour.. > > > > I have "open last project ay start" option enabled. > > And I often find myself testing something on a "New and not saved" > > project. Even if I stop working and close the IDE, the saved project > > I .worked on will be back > I am for the current behaviour too. However, if I understand correctly, > the sticking issue is whether creating a new project is treated like > opening an existing one as far as the "open last project on start" > option is concerned. Maybe that can be added as a sub option as well > ("even if new"). Please create a feature request to save the state "new project" and "no project" on IDE close. You can assign it to me.

Reported: http://bugs.freepascal.org/view.php?id=22914

Stephano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120919/4e69e1c1/attachment.html>

Reply by email