mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
FTW: don't display "Location not writable" if path is empty
This commit is contained in:
parent
5e4e56778b
commit
f5cf9677ae
|
@ -100,6 +100,9 @@ void FileTransferWidget::autoAcceptTransfer(const QString &path)
|
|||
|
||||
void FileTransferWidget::acceptTransfer(const QString &filepath)
|
||||
{
|
||||
if(filepath.isEmpty())
|
||||
return;
|
||||
|
||||
//test if writable
|
||||
if(!isFilePathWritable(filepath))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user