[KDevPlatform] ac15b2e: Don't close the running session when a session is

Milian Wolff mail at milianw.de
Wed Dec 1 15:06:09 UTC 2010


David Nolden, 01.12.2010:
> commit ac15b2ea5118222da5ae31969fd8ff2885610c69
> branch master
> Author: David Nolden <david.nolden.kde at art-master.de>
> Date:   Wed Dec 1 15:12:07 2010 +0100
> 
>     Don't close the running session when a session is selected through the
> "Session" menu.
> 
> diff --git a/shell/sessioncontroller.cpp b/shell/sessioncontroller.cpp
> index 0aaf017..e0f003f 100644
> --- a/shell/sessioncontroller.cpp
> +++ b/shell/sessioncontroller.cpp
> @@ -274,12 +274,14 @@ public:
>              if( s->id() == QUuid( a->data().toString() ) && s !=
> activeSession ) { bool loaded = loadSessionExternally( s );
> 
> +#if 0
>                  if(loaded)
>                  {
>                      //Terminate this instance of kdevelop if the user
> agrees foreach(Sublime::MainWindow* window,
> Core::self()->uiController()->controller()->mainWindows())
> window->close();
>                  }
> +#endif
>                  break;
>              }
>          }

Why don't you just remove the code, that's what git is there for after all...

I don't like these #if 0 blocks in KDevelop...

Bye

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20101201/43747084/attachment.sig>


More information about the KDevelop-devel mailing list