Fix window caption of edit field dialog called by popup menu

Fix the caption of the edit field dialog to show the correct table name
when it is called by the modify field action in the popup menu or the
toolbar.
Also remove one more useless debug message.
This commit is contained in:
Martin Kleusberg
2013-01-02 19:14:38 +01:00
parent 29673568be
commit 547e8d9964

View File

@@ -1280,8 +1280,7 @@ void MainWindow::on_edit_field(){
}
QTreeWidgetItem *item = ui->dbTreeWidget->currentItem();
editFieldForm *fieldForm = new editFieldForm( this );
qDebug(item->text(2).toUtf8());
fieldForm->setInitialValues(&db, false, "TABLE_NAME", item->text(0), item->text(2));
fieldForm->setInitialValues(&db, false, item->parent()->text(0), item->text(0), item->text(2));
if (fieldForm->exec())
{
//modified = true;