mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
defining everything to reduce null pointer errors, fixed zooming problem for scans
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@171 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@ -47,7 +47,7 @@ int main (int argc, char **argv) {
|
||||
|
||||
|
||||
qDetectorMain::qDetectorMain(int argc, char **argv, QApplication *app, QWidget *parent) :
|
||||
QMainWindow(parent), theApp(app),myDet(0),detID(0),myPlot(NULL),tabs(NULL),isDeveloper(0){
|
||||
QMainWindow(parent), theApp(app),myDet(0),detID(0),myPlot(0),tabs(0),isDeveloper(0){
|
||||
|
||||
string configFName = "";
|
||||
// Getting all the command line arguments
|
||||
@ -77,7 +77,7 @@ qDetectorMain::qDetectorMain(int argc, char **argv, QApplication *app, QWidget *
|
||||
|
||||
|
||||
qDetectorMain::~qDetectorMain(){
|
||||
delete myDet;
|
||||
if(myDet) delete myDet;
|
||||
if (menubar) delete menubar;
|
||||
if (centralwidget) delete centralwidget;
|
||||
}
|
||||
@ -194,7 +194,7 @@ void qDetectorMain::SetUpDetector(const string fName){
|
||||
myDet = new multiSlsDetector(detID);
|
||||
|
||||
//create messages tab to capture config file loading logs
|
||||
tab_messages = new qTabMessages (this,myDet); cout<<"Messages ready"<<endl;
|
||||
tab_messages = new qTabMessages (this); cout<<"Messages ready"<<endl;
|
||||
|
||||
//loads the config file at startup
|
||||
if(!fName.empty()) LoadConfigFile(fName);
|
||||
|
Reference in New Issue
Block a user