Skip to content

Commit 98e2e4f

Browse files
author
mhugent
committed
delimited text plugin: enable button to parse if the text in the delimiter field has changed
git-svn-id: http://svn.osgeo.org/qgis/trunk@8221 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ee95b95 commit 98e2e4f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/plugins/delimited_text/qgsdelimitedtextplugingui.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,3 +261,11 @@ void QgsDelimitedTextPluginGui::help()
261261
{
262262
qI->openURL("plugins/delimited_text/index.html",true);
263263
}
264+
265+
void QgsDelimitedTextPluginGui::on_txtDelimiter_textChanged(const QString & text)
266+
{
267+
if(!text.isEmpty())
268+
{
269+
pbnParse->setEnabled(true);
270+
}
271+
}

src/plugins/delimited_text/qgsdelimitedtextplugingui.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class QgsDelimitedTextPluginGui : public QDialog, private Ui::QgsDelimitedTextPl
4545
void on_buttonBox_rejected();
4646
void on_buttonBox_helpRequested();
4747
void on_btnBrowseForFile_clicked();
48+
void on_txtDelimiter_textChanged(const QString & text);
4849
void pbnParse_clicked();
4950

5051
signals:

0 commit comments

Comments
 (0)