]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/ide/activegrid/tool/UICommon.py
Applied patch [ 1212020 ] MediaCtrl DirectShow drawing and sample
[wxWidgets.git] / wxPython / samples / ide / activegrid / tool / UICommon.py
index 0f83b65e9159a427b09e4c06c1ac735b5cef54f8..52c6a152dcd1c47c3a177f66fcac73fc02ef10f6 100644 (file)
@@ -88,6 +88,7 @@ def AddFilesToCurrentProject(paths, save=False):
                     paths.remove(path)
             if paths:
                 projectDocument.GetCommandProcessor().Submit(ProjectEditor.ProjectAddFilesCommand(projectDocument, paths))
+                projectDocument.GetFirstView().DoSelectFiles([paths[0]])
                 if save:
                     projectDocument.OnSaveDocument(projectDocument.GetFilename())
 
@@ -112,4 +113,4 @@ def PluralName(name):
         return name[0:-1] + 'ies'
     else:
         return name + 's'
-           
+           
\ No newline at end of file