f=str(filename.toUtf8()).split('/')#Split the full path
defname=f[len(f)-1].lower()#Takes only the lowercase filename
else:
f=filename.split('/')#Split the full path
defname=f[len(f)-1].lower()#Takes only the lowercase filename
#Default relation's name
f=str(filename.toUtf8()).split('/')#Split the full path
defname=f[len(f)-1].lower()#Takes only the lowercase filename
iflen(defname)==0:
return
use_csv=True
@ -172,16 +180,18 @@ class Ui_Form(object):
defname=defname[:-4]
use_csv=False#Old format, not using csv
if(defname.endswith(".csv")):#removes the extension
defname=defname[:-4]
res=QtGui.QInputDialog.getText(self.Form,QtGui.QApplication.translate("Form","New relation"),QtGui.QApplication.translate("Form","Insert the name for the new relation"),
res=QtGui.QInputDialog.getText(self.Form,QtGui.QApplication.translate("Form","New relation"),QtGui.QApplication.translate("Form","Insert the name for the new relation"),