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 QString sourceArchivePath = QFileDialog::getOpenFileName(NULL, capti
//work-around for Qt bug - http://bugreports.qt.nokia.com/br on, lastUsedDirectoryPath, filter);
owse/QTBUG-16722
QString sourceArchivePath = QFileDialog::getOpenFileName(NUL
L, caption, lastUsedDirectoryPath, filter, 0, QFileDialog::DontUseNativeDia
log);
#else
QString sourceArchivePath = QFileDialog::getOpenFileName(NUL
L, caption, 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. 1 change blocks. 
10 lines changed or deleted 2 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/