Skip to content

Commit

Permalink
xlsxwidget: Fix file path filter passed to QFileDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dbzhang800 committed Dec 1, 2014
1 parent 7a55a7a commit 2ec1adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/xlsx/xlsxwidget/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main(int argc, char **argv)
QApplication app(argc, argv);

//![0]
QString filePath = QFileDialog::getOpenFileName(0, "Open xlsx file", QString(), ".xlsx");
QString filePath = QFileDialog::getOpenFileName(0, "Open xlsx file", QString(), "*.xlsx");
if (filePath.isEmpty())
return -1;
//![0]
Expand Down

0 comments on commit 2ec1adc

Please sign in to comment.