projects
/
gc-dialer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8150859
)
Fixing import
author
Ed Page
<eopage@byu.net>
Sat, 29 Jan 2011 00:38:11 +0000
(18:38 -0600)
committer
Ed Page
<eopage@byu.net>
Sat, 29 Jan 2011 00:38:11 +0000
(18:38 -0600)
src/dialcentral_qt.py
patch
|
blob
|
history
diff --git
a/src/dialcentral_qt.py
b/src/dialcentral_qt.py
index
7edcfd2
..
887c939
100755
(executable)
--- a/
src/dialcentral_qt.py
+++ b/
src/dialcentral_qt.py
@@
-258,6
+258,10
@@
class DelayedWidget(object):
else:
self._child.disable()
else:
self._child.disable()
+ @property
+ def child(self):
+ return self._child
+
def enable(self):
self._isEnabled = True
if self._child is not None:
def enable(self):
self._isEnabled = True
if self._child is not None:
@@
-636,11
+640,13
@@
class MainWindow(qwrappers.WindowWrapper):
def _on_import(self, checked = True):
with qui_utils.notify_error(self._errorLog):
csvName = QtGui.QFileDialog.getOpenFileName(self._window, caption="Import", filter="CSV Files (*.csv)")
def _on_import(self, checked = True):
with qui_utils.notify_error(self._errorLog):
csvName = QtGui.QFileDialog.getOpenFileName(self._window, caption="Import", filter="CSV Files (*.csv)")
+ csvName = unicode(csvName)
if not csvName:
return
import shutil
shutil.copy2(csvName, self._app.fsContactsPath)
if not csvName:
return
import shutil
shutil.copy2(csvName, self._app.fsContactsPath)
- self._tabsContents[self.CONTACTS_TAB].update_addressbooks()
+ if self._tabsContents[self.CONTACTS_TAB].has_child:
+ self._tabsContents[self.CONTACTS_TAB].child.update_addressbooks()
@QtCore.pyqtSlot()
@QtCore.pyqtSlot(bool)
@QtCore.pyqtSlot()
@QtCore.pyqtSlot(bool)