diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp index 920c61f075cae1b54dff16ddacc5a5d64f39b724..2d1be63adf431a855d64f114d1575c2301795414 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp @@ -62,10 +62,8 @@ bool MaemoDeployableListModel::buildModel() : QLatin1String("/usr/local/bin"); m_deployables.prepend(MaemoDeployable(localExecutableFilePath(), remoteDir)); - if (!m_proFileWrapper->addInstallsTarget(remoteDir)) { + if (!m_proFileWrapper->addInstallsTarget(remoteDir)) qWarning("Error updating .pro file."); - return false; - } } else { m_deployables.prepend(MaemoDeployable(localExecutableFilePath(), installs.targetPath)); @@ -150,8 +148,8 @@ QVariant MaemoDeployableListModel::data(const QModelIndex &index, int role) cons Qt::ItemFlags MaemoDeployableListModel::flags(const QModelIndex &index) const { Qt::ItemFlags parentFlags = QAbstractTableModel::flags(index); - if (index.column() == 1) - return parentFlags | Qt::ItemIsEditable; +// if (index.column() == 1) +// return parentFlags | Qt::ItemIsEditable; return parentFlags; } diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistwidget.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistwidget.cpp index 82fb469485a8b4badc46b9b7024e4d437ae876ff..df008ceebdb6e3c186513b8457e437a4db54ffcf 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistwidget.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistwidget.cpp @@ -60,6 +60,8 @@ MaemoDeployableListWidget::MaemoDeployableListWidget(QWidget *parent, : QWidget(parent), m_ui(new Ui::MaemoDeployableListWidget), m_model(model) { m_ui->setupUi(this); + m_ui->addFileButton->hide(); + m_ui->removeFileButton->hide(); m_ui->deployablesView->setWordWrap(false); m_ui->deployablesView->setModel(m_model); connect(m_model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),