|  | @@ -14,6 +14,7 @@ these comments stick to the symlink
 | 
	
		
			
				|  |  |  """
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import sys,os,argparse
 | 
	
		
			
				|  |  | +from dirWidget import DirWidget
 | 
	
		
			
				|  |  |  from PyQt4.QtGui import *
 | 
	
		
			
				|  |  |  from PyQt4 import QtGui, QtCore
 | 
	
		
			
				|  |  |  import xattr, sqlite3, time
 | 
	
	
		
			
				|  | @@ -159,19 +160,23 @@ class DirNotes(QMainWindow):
 | 
	
		
			
				|  |  |  		lb.setHorizontalHeaderItem(1,QTableWidgetItem("comment"))
 | 
	
		
			
				|  |  |  		lb.resizeColumnsToContents()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		e = QLabel("View and edit file comments stored in extended attributes user.xdg.comment")
 | 
	
		
			
				|  |  | +		e = QLabel("View and edit file comments stored in extended attributes user.xdg.comment",win)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		b1 = QPushButton("restore from database")
 | 
	
		
			
				|  |  | -		dirLeft = QFileDialog(self,"",current)
 | 
	
		
			
				|  |  | -		dirLeft.setMaximumHeight(250)
 | 
	
		
			
				|  |  | -		dirLeft.setOption(QFileDialog.DontUseNativeDialog)
 | 
	
		
			
				|  |  | -		dirLeft.setFileMode(QFileDialog.Directory)
 | 
	
		
			
				|  |  | -		dirLeft.setOption(QFileDialog.ShowDirsOnly)
 | 
	
		
			
				|  |  | +		b1 = QPushButton("restore from database",win)
 | 
	
		
			
				|  |  | +		dirLeft = DirWidget(current,win)
 | 
	
		
			
				|  |  | +		dirLeft.setMaximumHeight(140)
 | 
	
		
			
				|  |  | +		dirLeft.setMaximumWidth(200)
 | 
	
		
			
				|  |  | +		dirRight = DirWidget(current,win)
 | 
	
		
			
				|  |  | +		dirRight.setMaximumHeight(140)
 | 
	
		
			
				|  |  | +		dirRight.setMaximumWidth(200)
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		layout = QVBoxLayout()
 | 
	
		
			
				|  |  | +		upperLayout = QHBoxLayout()
 | 
	
		
			
				|  |  |  		layout.addWidget(e)
 | 
	
		
			
				|  |  | -		layout.addWidget(b1)
 | 
	
		
			
				|  |  | -		layout.addWidget(dirLeft)
 | 
	
		
			
				|  |  | +		upperLayout.addWidget(dirLeft)
 | 
	
		
			
				|  |  | +		upperLayout.addWidget(b1)
 | 
	
		
			
				|  |  | +		upperLayout.addWidget(dirRight)
 | 
	
		
			
				|  |  | +		layout.addLayout(upperLayout)
 | 
	
		
			
				|  |  |  		layout.addWidget(lb)
 | 
	
		
			
				|  |  |  		win.setLayout(layout)
 | 
	
		
			
				|  |  |  		
 |