forked from qt-creator/qt-creator
		
	Fixes: Crash after deleting a qt version and pressing cancel.
Details: That hasn't worked in the last few months, since we changed the QtVersion class from being passed by value to being passed around by reference.
This commit is contained in:
		@@ -122,7 +122,6 @@ private:
 | 
			
		||||
    // This is updated on first call to qmakeCommand
 | 
			
		||||
    // That function is called from updateVersionInfo()
 | 
			
		||||
    mutable QString m_qtVersionString;
 | 
			
		||||
    Q_DISABLE_COPY(QtVersion);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -131,6 +130,7 @@ class QtDirWidget : public QWidget
 | 
			
		||||
    Q_OBJECT
 | 
			
		||||
public:
 | 
			
		||||
    QtDirWidget(QWidget *parent, QList<QtVersion *> versions, int defaultVersion);
 | 
			
		||||
    ~QtDirWidget();
 | 
			
		||||
    QList<QtVersion *> versions() const;
 | 
			
		||||
    int defaultVersion() const;
 | 
			
		||||
    void finish();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user