compat: change to compile under qt4.7

This commit is contained in:
Peinthor Rene
2014-11-28 19:49:15 +01:00
parent 16b8428b66
commit 31915c4061
3 changed files with 4 additions and 1 deletions

View File

@@ -1851,7 +1851,8 @@ bool MainWindow::loadProject(QString filename)
xml.skipCurrentElement();
} else if(xml.name() == "column_widths") {
// Column widths
QByteArray temp = QByteArray::fromBase64(xml.attributes().value("data").toUtf8());
QString attrData = xml.attributes().value("data").toString();
QByteArray temp = QByteArray::fromBase64(attrData.toUtf8());
QDataStream stream(temp);
stream >> browseTableColumnWidths;
populateTable(ui->comboBrowseTable->currentText()); // Refresh view