When you create a new project for a Data Engine in Python, Plasmate crashes (attached stacktrace).
Steps to Reproduce:
1. Start plasmate
2. Create a new project for a Data Engine
3. Set a name for the new project
4. Select python as the language
5. Click Create! and it will crash
Plasmate was compiled from git sources, with tip at commit 6224611fdaaf1881b11ff236eb900a21fd2aa53b
Created attachment 79679 [details]
Stack trace after crash
It was generated with debug information for plasmate, but not for KDE or Qt.
Can reproduce here on Mageia Linux 3 (Cauldron) x86-64. Thanks for the patch.
Git commit 61d18f327ccec54622166464d069b43a4b99a5e7 by Albert Astals Cid, on behalf of Denis Falqueto.
Committed on 12/10/2013 at 16:06.
Pushed by aacid into branch 'master'.
Checks if an optional field was instantiated before accessing it
The private field m_konsolewidget is initialized only on some specific cases, so it should be accessed with caution. But there are some places in witch it's being used without checking if it was instantiated or not. This patch fixes those accesses, by checking if it is instantiated or not.
This was laying around in reviewboard approved by Giorgos Tsiapaliokas but uncommited for 5 months
M +6 -2 plasmate/mainwindow.cpp