AddRemoveLandscapesDialog.cpp   AddRemoveLandscapesDialog.cpp 
skipping to change at line 116 skipping to change at line 116
updateSidePane(-1); updateSidePane(-1);
} }
} }
void AddRemoveLandscapesDialog::browseForArchiveClicked() void AddRemoveLandscapesDialog::browseForArchiveClicked()
{ {
QString caption = q_("Select a ZIP archive that contains a Stellariu m landscape"); QString caption = q_("Select a ZIP archive that contains a Stellariu m landscape");
// TRANSLATORS: This string is displayed in the "Files of type:" dro p-down list in the standard file selection dialog. // TRANSLATORS: This string is displayed in the "Files of type:" dro p-down list in the standard file selection dialog.
QString filter = q_("ZIP archives"); QString filter = q_("ZIP archives");
filter += " (*.zip)"; filter += " (*.zip)";
#ifdef Q_OS_MAC
//work-around for Qt bug - http://bugreports.qt.nokia.com/browse/QTB
UG-16722
QString sourceArchivePath = QFileDialog::getOpenFileName(NULL, capti
on, lastUsedDirectoryPath, filter, 0, QFileDialog::DontUseNativeDialog);
#else
QString sourceArchivePath = QFileDialog::getOpenFileName(NULL, capti on, lastUsedDirectoryPath, filter); QString sourceArchivePath = QFileDialog::getOpenFileName(NULL, capti on, lastUsedDirectoryPath, filter);
#endif
bool useLandscape = ui->checkBoxUseLandscape->isChecked(); bool useLandscape = ui->checkBoxUseLandscape->isChecked();
if (!sourceArchivePath.isEmpty() && QFile::exists(sourceArchivePath) ) if (!sourceArchivePath.isEmpty() && QFile::exists(sourceArchivePath) )
{ {
//Remember the last successfully used directory //Remember the last successfully used directory
lastUsedDirectoryPath = QFileInfo(sourceArchivePath).path(); lastUsedDirectoryPath = QFileInfo(sourceArchivePath).path();
QString newLandscapeID = landscapeManager->installLandscapeF romArchive(sourceArchivePath, useLandscape); QString newLandscapeID = landscapeManager->installLandscapeF romArchive(sourceArchivePath, useLandscape);
if(!newLandscapeID.isEmpty()) if(!newLandscapeID.isEmpty())
{ {
//Show a message //Show a message
 End of changes. 2 change blocks. 
7 lines changed or deleted 0 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/